1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 01:06:15 +01:00

- request_interactive_review: added "(s)kip" option to skip the current request

This commit is contained in:
Marcus Huewe 2010-09-17 23:03:29 +02:00
parent de8b33f29d
commit af7ff0f2ad
2 changed files with 5 additions and 5 deletions

View File

@ -1756,10 +1756,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
for result in results:
if days == 0 or result.state.when > since or result.state.name == 'new':
if (opts.interactive or conf.config['request_show_interactive']) and not opts.non_interactive:
try:
request_interactive_review(apiurl, result)
except oscerr.UserAbort:
pass
request_interactive_review(apiurl, result)
else:
print result.list_view()
else:

View File

@ -5443,7 +5443,7 @@ def request_interactive_review(apiurl, request):
print request.__str__().encode('ascii', 'xmlcharrefreplace')
print_request(request)
try:
msg = '(a)ccept/(d)ecline/(r)evoke/(b)uildstatus/(c)ancel > '
msg = '(a)ccept/(d)ecline/(r)evoke/(b)uildstatus/(s)kip/(c)ancel > '
if request.actions[0].type == 'submit':
msg = 'd(i)ff/%s' % msg
while True:
@ -5480,6 +5480,9 @@ def request_interactive_review(apiurl, request):
tmpfile.flush()
run_editor(tmpfile.name)
print_request(request)
elif repl == 's':
print >>sys.stderr, 'skipping: #%d' % request.reqid
break
elif repl == 'c':
print >>sys.stderr, 'Aborting'
raise oscerr.UserAbort()