PTU5KAS/kas
Felix Moessbauer 23dcf955a2 add revision attribute to repo class
This patch adds a programmatic attribute 'revision' to the repo class.
This attribute contains the exact revision at the time of the checkout
of a repository. By that, we can avoid the ambiguity of refspecs
containing tags or branch names. Internally, the revision is not yet
used but just made available for future downstream users (e.g. plugins).

Note, that the revision has to be re-queried on each access, as the
Config class re-instantiates the repos for each consumer.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2022-12-13 14:39:25 +01:00
..
plugins add plugin to dump flattened config 2022-12-13 14:38:41 +01:00
__init__.py __init__: Better support introspection 2018-12-07 09:56:09 +01:00
__main__.py Drop unnecessary shebang lines 2021-08-30 21:56:49 +02:00
__version__.py add conditional environment variables 2022-11-10 19:03:48 +01:00
config.py config: Symplify .config.yaml file handling 2022-08-03 13:00:55 +02:00
configschema.py yml: Move json schema from python dict to standalone json file 2021-10-05 10:28:24 +02:00
context.py forward build-concurrency related env vars 2022-10-19 11:02:17 +02:00
includehandler.py includehandler: Simplify code 2021-10-01 11:16:28 +02:00
kas.py plugins: Invoke setup_parser_common_args explicitly from setup_parser 2021-10-09 15:00:05 +02:00
libcmds.py libcmds: Remove protected accesses to Config 2022-07-12 09:21:07 +02:00
libkas.py libkas: Fix typo 2022-11-11 13:36:12 +01:00
repos.py add revision attribute to repo class 2022-12-13 14:39:25 +01:00
schema-kas.json add conditional environment variables 2022-11-10 19:03:48 +01:00