osc-staging: extend --message to unselect which will ignore first.
This commit is contained in:
parent
30441638e8
commit
70a3d7074a
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user