# HG changeset patch # User Martin von Zweigbergk # Date 1588953335 25200 # Node ID 07a6a29d25eaaf6313d554babff49629199cc35f # Parent aac816f584adf7e715b8a09c0b1b8c7a593689ee status: use cmdutil.check_at_most_one_arg() for checking --rev/--change There are apparently no tests for this either. Differential Revision: https://phab.mercurial-scm.org/D8511 diff -r aac816f584ad -r 07a6a29d25ea mercurial/commands.py --- a/mercurial/commands.py Fri May 08 08:50:47 2020 -0700 +++ b/mercurial/commands.py Fri May 08 08:55:35 2020 -0700 @@ -6784,6 +6784,7 @@ """ + cmdutil.check_at_most_one_arg(opts, 'rev', 'change') opts = pycompat.byteskwargs(opts) revs = opts.get(b'rev') change = opts.get(b'change') @@ -6794,10 +6795,7 @@ else: terse = ui.config(b'commands', b'status.terse') - if revs and change: - msg = _(b'cannot specify --rev and --change at the same time') - raise error.Abort(msg) - elif revs and terse: + if revs and terse: msg = _(b'cannot use --terse with --rev') raise error.Abort(msg) elif change: