mercurial/commands.py
changeset 44809 07a6a29d25ea
parent 44808 aac816f584ad
child 44823 3b7aabd02e11
--- 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: