add --include-trailing option to propose-library-branches

Add an option to let us include cycle-trailing libraries so it is
easier to do a final sweep and ensure that all libraries are branched.

Change-Id: Ibb9d4bc2173b106f6129a4e557807c13c0df559f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-08-08 11:58:27 -04:00
parent 5fc52e3580
commit d92df30fcf
1 changed files with 8 additions and 1 deletions

View File

@ -64,6 +64,13 @@ def main():
default=['library'],
dest='types',
)
parser.add_argument(
'--include-trailing',
action='append_const',
const='cycle-trailing',
default=['cycle-with-intermediary'],
dest='models',
)
parser.add_argument(
'--dry-run', '-n',
default=False,
@ -114,7 +121,7 @@ def main():
deliverable_data = yamlutils.loads(f.read())
if deliverable_data['type'] not in args.types:
continue
if deliverable_data['release-model'] != 'cycle-with-intermediary':
if deliverable_data['release-model'] not in args.models:
print('WARNING {} has release model {}, skipping'.format(
deliverable_name, deliverable_data['release-model']))
continue