mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
- show pending requests after branching a package
This commit is contained in:
parent
39a92bc63b
commit
3cfe9db980
@ -1292,6 +1292,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
r = expected = r[1]
|
||||
print >>sys.stderr, 'Using existing branch project:', r, '\n'
|
||||
|
||||
devloc = None
|
||||
if r != expected:
|
||||
devloc = r
|
||||
if 'branches:' in r:
|
||||
@ -1319,7 +1320,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
print 'A working copy of the branched package can be checked out with:\n\n' \
|
||||
'osc %sco %s/%s' \
|
||||
% (apiopt, r, package)
|
||||
|
||||
print_request_list(conf.config['apiurl'], args[0], args[1])
|
||||
if devloc:
|
||||
print_request_list(conf.config['apiurl'], devloc, args[1])
|
||||
|
||||
|
||||
|
||||
|
@ -4273,6 +4273,6 @@ def print_request_list(apiurl, project, package = None, states = ('new', ), forc
|
||||
if package is None and len(requests):
|
||||
print msg % ('project', project, len(requests))
|
||||
elif len(requests):
|
||||
print msg % ('package', package, len(requests))
|
||||
print msg % ('package', '/'.join([project, package]), len(requests))
|
||||
for r in requests:
|
||||
print r.list_view()
|
||||
|
Loading…
Reference in New Issue
Block a user