##// END OF EJS Templates
fix: use cmdutil.check_at_most_one_arg()...
Martin von Zweigbergk -
r44349:dda49ec2 default
parent child Browse files
Show More
@@ -249,9 +249,8 b' def fix(ui, repo, *pats, **opts):'
249 249 override this default behavior, though it is not usually desirable to do so.
250 250 """
251 251 opts = pycompat.byteskwargs(opts)
252 cmdutil.check_at_most_one_arg(opts, b'all', b'rev')
252 253 if opts[b'all']:
253 if opts[b'rev']:
254 raise error.Abort(_(b'cannot specify both "--rev" and "--all"'))
255 254 opts[b'rev'] = [b'not public() and not obsolete()']
256 255 opts[b'working_dir'] = True
257 256 with repo.wlock(), repo.lock(), repo.transaction(b'fix'):
General Comments 0
You need to be logged in to leave comments. Login now