# HG changeset patch # User Joel Rosdahl # Date 2008-10-25 17:05:52 # Node ID 9bd051efbdd6e64ff2db18bf09610028ea2071e2 # Parent 7fb0e130cf14a000a40d2bb72efc976e43ae3f05 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 @@ def bookmark(ui, repo, mark=None, rev=No return if mark == None: + if rev: + raise util.Abort(_("bookmark name required")) if len(marks) == 0: ui.status("no bookmarks set\n") else: