diff mercurial/commands.py @ 17686:6e4b962600a3

bookmarks: teach the -r option to use revsets
author David Soria Parra <dsp@php.net>
date Mon, 01 Oct 2012 03:19:23 +0200
parents 28c43957f8b4
children 009db477c9fb
line wrap: on
line diff
--- a/mercurial/commands.py	Sat Sep 29 13:41:02 2012 +0200
+++ b/mercurial/commands.py	Mon Oct 01 03:19:23 2012 +0200
@@ -833,7 +833,7 @@
             raise util.Abort(
                 _("a bookmark cannot have the name of an existing branch"))
         if rev:
-            marks[mark] = repo.lookup(rev)
+            marks[mark] = scmutil.revsingle(repo, rev).node()
         else:
             marks[mark] = cur
         if not inactive and cur == marks[mark]: