From c69d3b5fc88fd2d60527d6cd2106a3150a4e4fa4 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Tue, 6 Feb 2018 18:47:11 -0500 Subject: [PATCH] by default skip projects that have had tags applied There is no need to show the contents of a release if the tag has already been applied. Provide a command line option to be used when running the tool interactively to disable this behavior, just in case. Change-Id: I0db8075a750cba76eef40eb7a5656307ffe78992 Signed-off-by: Doug Hellmann --- openstack_releases/cmds/list_changes.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openstack_releases/cmds/list_changes.py b/openstack_releases/cmds/list_changes.py index a55ff2a887..9f52ac5a7f 100644 --- a/openstack_releases/cmds/list_changes.py +++ b/openstack_releases/cmds/list_changes.py @@ -196,6 +196,13 @@ def main(): action='store_false', help='do not remove temporary files', ) + parser.add_argument( + '--no-shortcut', + dest='shortcut', + default=True, + action='store_false', + help='if a tag has been applied, skip the repo', + ) parser.add_argument( 'input', nargs='*', @@ -319,6 +326,9 @@ def main(): if tag_exists: print('%s %s exists on git server already' % (project['repo'], new_release['version'])) + if args.shortcut: + print('skipping further processing') + continue # Start by checking out master, always. We need the repo # checked out before we can tell if the stable branch