[PATCH 11 of 14] bookmarks: Require a bookmark name when a revision is specified

Joel Rosdahl joel at rosdahl.net
Sat Oct 25 10:18:44 CDT 2008


# HG changeset patch
# User Joel Rosdahl <joel at rosdahl.net>
# Date 1224947620 -7200
# Node ID 28cd751bd3c3a9ae0ef696c154765daaf766edc6
# Parent  933aa644b8f75f1b71e96a88db59316e96f7fc76
bookmarks: Require a bookmark name when a revision is specified

diff --git a/hgext/bookmarks.py b/hgext/bookmarks.py
--- a/hgext/bookmarks.py
+++ b/hgext/bookmarks.py
@@ -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:


More information about the Mercurial-devel mailing list