config: Allow a default repo to be specified for patches

Signed-off-by: Paul Barker <pbarker@konsulko.com>
[Jan: style fix]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Paul Barker
2020-07-04 09:53:39 +02:00
committed by Jan Kiszka
parent 2260189fda
commit b107a60118
4 changed files with 37 additions and 8 deletions

View File

@@ -83,5 +83,6 @@ Added
~~~~~
- ``defaults`` key can now be used to set a default value for the repository
property ``refspec``. This default value will be used if the appropriate
property is not defined for a given repository.
property ``refspec`` and the repository patch property ``repo``. These
default values will be used if the appropriate properties are not defined
for a given repository or patch.

View File

@@ -326,6 +326,16 @@ Configuration reference
Sets the default ``refspec`` property applied to all repositories that
do not override this.
* ``patches``: dict [optional]
This key can contain default values for some repository patch
properties. If a default value is set for a patch property it may
still be overridden by setting the same property to a different value
in a given patch.
* ``repo``: string [optional]
Sets the default ``repo`` property applied to all repository
patches that do not override this.
* ``machine``: string [optional]
Contains the value of the ``MACHINE`` variable that is written into the
``local.conf``. Can be overwritten by the ``KAS_MACHINE`` environment