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

allow to specify a log message in lock command

This commit is contained in:
Adrian Schröter 2016-11-03 08:39:50 +01:00
parent 9800a7a706
commit 2befb71663
2 changed files with 5 additions and 1 deletions

2
NEWS
View File

@ -1,5 +1,7 @@
0.156
- highlight scheduled jobs with dispatch problems (due to constraints)
- allow to specify a log message in lock command
- Add '--wipe' option to osc chroot for deleting buildroots
0.155
- osc service runall: runs all service local, independend of the mode

View File

@ -3518,6 +3518,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
delete_project(apiurl, prj, opts.force, msg)
@cmdln.option('-m', '--message', metavar='TEXT',
help='specify log message TEXT')
def do_lock(self, subcmd, opts, project, package=None):
"""${cmd_name}: Locks a project or package.
@ -3542,7 +3544,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
lock = ET.SubElement(root, 'lock')
ET.SubElement(lock, 'enable')
meta = ET.tostring(root)
edit_meta(kind, path_args=path_args, data=meta)
edit_meta(kind, path_args=path_args, data=meta, msg=opts.message)
@cmdln.option('-m', '--message', metavar='TEXT',