mercurial/commands.py
changeset 43902 e623ad1b4800
parent 43901 5cde16489b42
child 43919 6b6872822b32
--- a/mercurial/commands.py	Thu Dec 12 23:32:47 2019 -0800
+++ b/mercurial/commands.py	Fri Dec 13 14:31:51 2019 -0800
@@ -1236,8 +1236,7 @@
     else:
         action = b'list'
 
-    if inactive and action in {b'delete', b'list'}:
-        raise error.Abort(_(b"--inactive is incompatible with --%s") % action)
+    cmdutil.check_incompatible_arguments(opts, b'inactive', b'delete', b'list')
     if not names and action in {b'add', b'delete'}:
         raise error.Abort(_(b"bookmark name required"))