mercurial/commands.py
branchstable
changeset 19109 26c51e87e807
parent 19026 1dc393614e61
child 19111 6439d78e14fb
--- a/mercurial/commands.py	Tue Apr 30 09:02:02 2013 +0900
+++ b/mercurial/commands.py	Wed May 01 15:31:39 2013 -0500
@@ -816,6 +816,11 @@
                     return
                 anc = repo.changelog.ancestors([repo[target].rev()])
                 bmctx = repo[marks[mark]]
+                divs = [repo[b].node() for b in marks
+                        if b.split('@', 1)[0] == mark.split('@', 1)[0]]
+                deletefrom = [b for b in divs
+                              if repo[b].rev() in anc or b == target]
+                bookmarks.deletedivergent(repo, deletefrom, mark)
                 if bmctx.rev() in anc:
                     ui.status(_("moving bookmark '%s' forward from %s\n") %
                               (mark, short(bmctx.node())))