update: note updated bookmark stable
authorKevin Bullock <kbullock@ringworld.org>
Fri, 27 Jan 2012 13:12:56 -0600
branchstable
changeset 16010 c7811ca6fb94
parent 16009 f1208827df7c
child 16011 f2c49d9dee57
update: note updated bookmark This brings update in line with pull: we notify the user when an action indirectly updates a bookmark.
mercurial/commands.py
tests/test-bookmarks-pushpull.t
--- a/mercurial/commands.py	Fri Jan 27 14:19:32 2012 -0600
+++ b/mercurial/commands.py	Fri Jan 27 13:12:56 2012 -0600
@@ -5719,7 +5719,8 @@
         ret = hg.update(repo, rev)
 
     if not ret and movemarkfrom:
-        bookmarks.update(repo, [movemarkfrom], repo['.'].node())
+        if bookmarks.update(repo, [movemarkfrom], repo['.'].node()):
+            ui.status(_("updating bookmark %s\n") % repo._bookmarkcurrent)
     elif brev in repo._bookmarks:
         bookmarks.setcurrent(repo, brev)
 
--- a/tests/test-bookmarks-pushpull.t	Fri Jan 27 14:19:32 2012 -0600
+++ b/tests/test-bookmarks-pushpull.t	Fri Jan 27 13:12:56 2012 -0600
@@ -101,6 +101,7 @@
   $ cd ../b
   $ hg up
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  updating bookmark foobar
   $ echo c2 > f2
   $ hg ci -Am2
   adding f2