diff --git a/NEWS b/NEWS index d65dd8b8..38e673e0 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/osc/commandline.py b/osc/commandline.py index f17a1599..4ac017ba 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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',