1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00

Same output as "osc branch" for mbranch command

Users can just copy-paste the "osc co ..." command in their shell and be
more productive.
This commit is contained in:
Sascha Peilicke 2013-11-05 15:07:38 +01:00 committed by Sascha Peilicke
parent 63797d9fe8
commit 89eb129e4d

View File

@ -3019,7 +3019,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print("%s/%s"%(r.get('project'), r.get('package')))
return
print("Project " + result + " created.")
apiopt = ''
if conf.get_configParser().get('general', 'apiurl') != apiurl:
apiopt = '-A %s ' % apiurl
print('A working copy of the maintenance branch can be checked out with:\n\n' \
'osc %sco %s' \
% (apiopt, result))
if opts.checkout:
Project.init_project(apiurl, result, result, conf.config['do_package_tracking'])