1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-04 18:46:17 +01:00

approvenew is a little bit less horrible then acceptallnew, isn't it ?

This commit is contained in:
Adrian Schröter 2010-05-19 12:50:52 +02:00
parent 9f65f138ed
commit 87a6bf4205
2 changed files with 8 additions and 8 deletions

2
NEWS
View File

@ -3,7 +3,7 @@
- --csv/--format options for results command - using format user can explicitly specify what he wants print - --csv/--format options for results command - using format user can explicitly specify what he wants print
- osc branch reads project/package in package directory - osc branch reads project/package in package directory
- fix creation of package link, when target project has the package via linked project - fix creation of package link, when target project has the package via linked project
- add "osc rq acceptallnew $PROJECT" command to show and accept all request in new state. - add "osc rq approvenew $PROJECT" command to show and accept all request in new state.
This makes sense esp. for projects which work with default reviewers before. This makes sense esp. for projects which work with default reviewers before.
# #
# Features which require OBS 2.0 # Features which require OBS 2.0

View File

@ -1103,7 +1103,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
osc request log ID osc request log ID
osc request [show] [-d] [-b] ID osc request [show] [-d] [-b] ID
osc request accept [-m TEXT] ID osc request accept [-m TEXT] ID
osc request acceptallnew [-m TEXT] PROJECT osc request approvenew [-m TEXT] PROJECT
osc request decline [-m TEXT] ID osc request decline [-m TEXT] ID
osc request revoke [-m TEXT] ID osc request revoke [-m TEXT] ID
osc request wipe ID osc request wipe ID
@ -1134,7 +1134,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if opts.state == '': if opts.state == '':
opts.state = 'new' opts.state = 'new'
cmds = ['list', 'log', 'show', 'decline', 'accept', 'acceptallnew', 'wipe', 'revoke', 'checkout', 'co', 'help'] cmds = ['list', 'log', 'show', 'decline', 'accept', 'approvenew', 'wipe', 'revoke', 'checkout', 'co', 'help']
if not args or args[0] not in cmds: if not args or args[0] not in cmds:
raise oscerr.WrongArgs('Unknown request action %s. Choose one of %s.' \ raise oscerr.WrongArgs('Unknown request action %s. Choose one of %s.' \
% (args[0],', '.join(cmds))) % (args[0],', '.join(cmds)))
@ -1156,7 +1156,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
apiurl = self.get_api_url() apiurl = self.get_api_url()
if cmd == 'list' or cmd == 'acceptallnew': if cmd == 'list' or cmd == 'approvenew':
package = None package = None
project = None project = None
if len(args) > 0: if len(args) > 0:
@ -1173,11 +1173,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
elif cmd in ['log', 'show', 'decline', 'accept', 'wipe', 'revoke', 'checkout', 'co']: elif cmd in ['log', 'show', 'decline', 'accept', 'wipe', 'revoke', 'checkout', 'co']:
reqid = args[0] reqid = args[0]
# list and acceptallnew # list and approvenew
if cmd == 'list' or cmd == 'acceptallnew': if cmd == 'list' or cmd == 'approvenew':
states = ('new', 'accepted', 'revoked', 'declined') states = ('new', 'accepted', 'revoked', 'declined')
who = '' who = ''
if cmd == 'acceptallnew': if cmd == 'approvenew':
states = ('new') states = ('new')
results = get_request_list(apiurl, project, package, '', ['new']) results = get_request_list(apiurl, project, package, '', ['new'])
else: else:
@ -1235,7 +1235,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if skipped: if skipped:
print "There are %d requests older than %s days.\n" % (skipped, days) print "There are %d requests older than %s days.\n" % (skipped, days)
if cmd == 'acceptallnew': if cmd == 'approvenew':
print "\n *** Approve them all ? [y/n] ***" print "\n *** Approve them all ? [y/n] ***"
if sys.stdin.read(1) == "y": if sys.stdin.read(1) == "y":