diff hgext/bookmarks.py @ 7816:f420eafe59cd

bookmarks: Set current bookmark if we create a new one on the tip If track.current is enabled we set the newly created bookmark as the current tracked bookmark. We do not do this if a revision is specified.
author David Soria Parra <dsp@php.net>
date Sun, 01 Mar 2009 00:30:01 +0100
parents 5043def56a80
children cb516e788238
line wrap: on
line diff
--- a/hgext/bookmarks.py	Mon Mar 02 19:19:12 2009 -0600
+++ b/hgext/bookmarks.py	Sun Mar 01 00:30:01 2009 +0100
@@ -164,6 +164,7 @@
             marks[mark] = repo.lookup(rev)
         else:
             marks[mark] = repo.changectx('.').node()
+            setcurrent(repo, mark)
         write(repo, marks)
         return