1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

Fix 'osc revert' command

This commit is contained in:
Daniel Mach 2022-09-20 10:04:04 +02:00
parent 42dcc7ca3c
commit c263d950ca

View File

@ -9070,7 +9070,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else:
print('\'%s\': \'%s\' is set to \'%s\'' % (section, opt, newval))
def do_revert(self, subcmd, opts, *files):
@cmdln.option('file', nargs='+')
def do_revert(self, subcmd, opts):
"""
Restore changed files or the entire working copy
@ -9079,6 +9080,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
osc revert .
Note: this only works for package working copies
"""
files = opts.file
pacs = findpacs(files)
for p in pacs:
if not p.todo: