add option to list-deliverables to show items without a stable branch
list-deliverables is already able to focus on a series. Add a new option to let it show only items that do not have a stable branch for that series. This can take the place of some of the tracking we were doing on the old dashboard. Change-Id: I57a51b5de9cd289369330a42dbf15003bedac091 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
2f68553169
commit
3a774a8afd
@ -37,7 +37,8 @@ def main():
|
||||
model = parser.add_mutually_exclusive_group()
|
||||
model.add_argument(
|
||||
'--model',
|
||||
help='the release model, such as "cycle-with-milestones" or "independent"',
|
||||
help=('the release model, such as "cycle-with-milestones"'
|
||||
' or "independent"'),
|
||||
)
|
||||
model.add_argument(
|
||||
'--cycle-based',
|
||||
@ -54,6 +55,12 @@ def main():
|
||||
default=openstack_releases.deliverable_dir,
|
||||
help='location of deliverable files',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--no-stable-branch',
|
||||
default=False,
|
||||
action='store_true',
|
||||
help='limit the list to deliverables without a stable branch',
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
# Deal with the inconsistency of the name for the independent
|
||||
@ -75,5 +82,8 @@ def main():
|
||||
continue
|
||||
if args.type and deliv.type != args.type:
|
||||
continue
|
||||
if args.no_stable_branch:
|
||||
if deliv.get_branch_location('stable/' + series) is not None:
|
||||
continue
|
||||
|
||||
print(deliv.name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user