bookmarks: Require a bookmark name when a revision is specified
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 25 Oct 2008 19:05:52 +0200
changeset 7258 9bd051efbdd6
parent 7257 7fb0e130cf14
child 7259 18c23375861f
bookmarks: Require a bookmark name when a revision is specified
hgext/bookmarks.py
--- a/hgext/bookmarks.py	Sat Oct 25 19:05:52 2008 +0200
+++ b/hgext/bookmarks.py	Sat Oct 25 19:05:52 2008 +0200
@@ -114,6 +114,8 @@
         return
 
     if mark == None:
+        if rev:
+            raise util.Abort(_("bookmark name required"))
         if len(marks) == 0:
             ui.status("no bookmarks set\n")
         else: