hgext/rebase.py
changeset 43926 daed70e95d60
parent 43899 fff21278554b
child 43927 905b21783968
--- a/hgext/rebase.py	Tue Dec 17 21:25:54 2019 -0500
+++ b/hgext/rebase.py	Fri Dec 13 14:49:48 2019 -0800
@@ -1026,8 +1026,7 @@
         raise error.Abort(_(b'cannot specify both --dry-run and --%s') % action)
     if confirm and action:
         raise error.Abort(_(b'cannot specify both --confirm and --%s') % action)
-    if dryrun and confirm:
-        raise error.Abort(_(b'cannot specify both --confirm and --dry-run'))
+    cmdutil.check_at_most_one_arg(opts, b'confirm', b'dry_run')
 
     if action or repo.currenttransaction() is not None:
         # in-memory rebase is not compatible with resuming rebases.