diff hgext/bookmarks.py @ 11561:e5aaaef91a27 stable

bookmarks: ensure current bookmark is updated when specified with -r . "hg bookmark -r . foo" should be equivalent to "hg bookmark foo".
author Brodie Rao <brodie@bitheap.org>
date Wed, 14 Jul 2010 11:02:20 -0400
parents b9a46acdfe1f
children ead7550f1aab
line wrap: on
line diff
--- a/hgext/bookmarks.py	Thu Jul 01 19:23:26 2010 -0500
+++ b/hgext/bookmarks.py	Wed Jul 14 11:02:20 2010 -0400
@@ -146,7 +146,7 @@
             marks[mark] = repo.lookup(rev)
         else:
             marks[mark] = repo.changectx('.').node()
-            setcurrent(repo, mark)
+        setcurrent(repo, mark)
         write(repo)
         return