[PATCH] update: note updated bookmark
Kevin Bullock
kbullock+mercurial at ringworld.org
Fri Jan 27 19:15:29 UTC 2012
# HG changeset patch
# User Kevin Bullock <kbullock at ringworld.org>
# Date 1327691576 21600
# Branch stable
# Node ID cbea645e3e57bb91832daa6f79f2d15833c3e0a2
# Parent fcf66193b18699141e1da1ef4de4795d62a658cb
update: note updated bookmark
This brings update in line with pull: we notify the user when an action
indirectly updates a bookmark.
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -5718,7 +5718,8 @@ def update(ui, repo, node=None, rev=None
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)
More information about the Mercurial-devel
mailing list