1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 09:56:13 +01:00

- show pending requests after branching a package

This commit is contained in:
Marcus Hüwe 2009-09-22 23:31:10 +00:00
parent 39a92bc63b
commit 3cfe9db980
2 changed files with 5 additions and 2 deletions

View File

@ -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])

View File

@ -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()