hgext/inhibit.py
changeset 1538 ef5da2310398
parent 1535 f6d10432499d
child 1539 72f50a177806
--- a/hgext/inhibit.py	Wed Nov 18 13:47:26 2015 -0800
+++ b/hgext/inhibit.py	Fri Nov 20 10:30:42 2015 -0800
@@ -85,6 +85,11 @@
     haspruneopt = opts.get('prune', False)
     if not haspruneopt:
         return orig(ui, repo, *bookmarks, **opts)
+    elif opts.get('rename'):
+        raise util.Abort('Cannot use both -m and -D')
+    elif len(bookmarks) == 0:
+        hint = _('make sure to put a space between -D and your bookmark name')
+        raise util.Abort(_('Error, please check your command'), hint=hint)
 
     # Call prune -B
     evolve = extensions.find('evolve')