mercurial/commands.py
changeset 20108 af12f58e2aa0
parent 20097 85d9200ba9f0
parent 20107 2ca325ea57fa
child 20136 1df77035c814
--- a/mercurial/commands.py	Mon Nov 18 09:09:05 2013 -0800
+++ b/mercurial/commands.py	Mon Nov 25 16:15:44 2013 -0600
@@ -837,10 +837,12 @@
                     bookmarks.deletedivergent(repo, [target], mark)
                     return
 
+                # consider successor changesets as well
+                foreground = obsolete.foreground(repo, [marks[mark]])
                 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:
+                if bmctx.rev() in anc or target in foreground:
                     ui.status(_("moving bookmark '%s' forward from %s\n") %
                               (mark, short(bmctx.node())))
                     return