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.