From 70a3d7074a941a379fa165c28dacd26fd8a2c851 Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Fri, 10 Mar 2017 01:01:28 -0600 Subject: [PATCH] osc-staging: extend --message to unselect which will ignore first. --- osc-staging.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osc-staging.py b/osc-staging.py index 7a023f31..d8b155a8 100644 --- a/osc-staging.py +++ b/osc-staging.py @@ -202,6 +202,7 @@ def do_staging(self, subcmd, opts, *args): Interactive mode allows the proposal to be modified before application. "unselect" will remove from the project - pushing them back to the backlog + If a message is included the requests will be ignored first. "unlock" will remove the staging lock in case it gets stuck @@ -221,7 +222,7 @@ def do_staging(self, subcmd, opts, *args): [--filter-by...] [--group-by...] [--merge] [--try-strategies] [--strategy] [STAGING...] [REQUEST...] - osc staging unselect REQUEST... + osc staging unselect [-m MESSAGE] REQUEST... osc staging unlock osc staging repair REQUEST... """ @@ -325,6 +326,9 @@ def do_staging(self, subcmd, opts, *args): else: print("Not safe to accept: /totest is not yet synced") elif cmd == 'unselect': + if opts.message: + print('Ignoring requests first') + IgnoreCommand(api).perform(args[1:], opts.message) UnselectCommand(api).perform(args[1:]) elif cmd == 'select': # Include list of all stagings in short-hand and by full name.