trouble with fast forward merge

Bela Babik teki321 at gmail.com
Wed Jul 4 23:08:40 CDT 2007


My temporaly solution to the problem:

diff --git a/mercurial/merge.py b/mercurial/merge.py
--- a/mercurial/merge.py
+++ b/mercurial/merge.py
@@ -523,7 +523,7 @@ def update(repo, node, branchmerge, forc
         raise util.Abort(_("outstanding uncommitted merges"))
     if pa == p1 or pa == p2: # is there a linear path from p1 to p2?
         if branchmerge:
-            if p1.branch() != p2.branch():
+            if p1.branch() != p2.branch() and repo.ui.prompt(_("Do a
fast forward merge? (y/[n])"),default="n") == _("y"):
                 fastforward = True
             else:
                 raise util.Abort(_("there is nothing to merge, just use "


More information about the Mercurial mailing list