check: support multiple specified projects.
This commit is contained in:
parent
4cbc9f6679
commit
b79543849e
@ -262,7 +262,7 @@ def do_staging(self, subcmd, opts, *args):
|
|||||||
osc staging accept [--force] [--no-cleanup] [LETTER...]
|
osc staging accept [--force] [--no-cleanup] [LETTER...]
|
||||||
osc staging acheck
|
osc staging acheck
|
||||||
osc staging adi [--move] [--by-develproject] [--split] [REQUEST...]
|
osc staging adi [--move] [--by-develproject] [--split] [REQUEST...]
|
||||||
osc staging check [--old] STAGING
|
osc staging check [--old] [STAGING...]
|
||||||
osc staging cleanup_rings
|
osc staging cleanup_rings
|
||||||
osc staging freeze [--no-boostrap] STAGING...
|
osc staging freeze [--no-boostrap] STAGING...
|
||||||
osc staging frozenage [STAGING...]
|
osc staging frozenage [STAGING...]
|
||||||
@ -300,7 +300,7 @@ def do_staging(self, subcmd, opts, *args):
|
|||||||
elif cmd == 'setprio':
|
elif cmd == 'setprio':
|
||||||
min_args, max_args = 0, None
|
min_args, max_args = 0, None
|
||||||
elif cmd == 'check':
|
elif cmd == 'check':
|
||||||
min_args, max_args = 0, 1
|
min_args, max_args = 0, None
|
||||||
elif cmd == 'select':
|
elif cmd == 'select':
|
||||||
min_args, max_args = 0, None
|
min_args, max_args = 0, None
|
||||||
elif cmd == 'unselect':
|
elif cmd == 'unselect':
|
||||||
@ -360,8 +360,12 @@ def do_staging(self, subcmd, opts, *args):
|
|||||||
|
|
||||||
# call the respective command and parse args by need
|
# call the respective command and parse args by need
|
||||||
if cmd == 'check':
|
if cmd == 'check':
|
||||||
prj = args[1] if len(args) > 1 else None
|
if len(args) == 1:
|
||||||
|
CheckCommand(api).perform(None, opts.old)
|
||||||
|
else:
|
||||||
|
for prj in args[1:]:
|
||||||
CheckCommand(api).perform(prj, opts.old)
|
CheckCommand(api).perform(prj, opts.old)
|
||||||
|
print()
|
||||||
elif cmd == 'freeze':
|
elif cmd == 'freeze':
|
||||||
for prj in args[1:]:
|
for prj in args[1:]:
|
||||||
prj = api.prj_from_letter(prj)
|
prj = api.prj_from_letter(prj)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user