patchbomb: avoid -r and -B options at the same time
authorDavid Demelier <demelier.david@gmail.com>
Tue, 06 Jun 2017 08:52:51 +0200
changeset 32695 0841382d114a
parent 32694 3ef319e9505f
child 32696 0c09afdf5704
patchbomb: avoid -r and -B options at the same time
hgext/patchbomb.py
--- a/hgext/patchbomb.py	Mon Jun 05 16:19:41 2017 -0700
+++ b/hgext/patchbomb.py	Tue Jun 06 08:52:51 2017 +0200
@@ -559,6 +559,8 @@
     if outgoing and bundle:
         raise error.Abort(_("--outgoing mode always on with --bundle;"
                            " do not re-specify --outgoing"))
+    if rev and bookmark:
+        raise error.Abort(_("-r and -B are mutually exclusive"))
 
     if outgoing or bundle:
         if len(revs) > 1: