filemerge: only print out "merging f" output at premerge step
authorSiddharth Agarwal <sid0@fb.com>
Sun, 11 Oct 2015 20:02:53 -0700
changeset 26609 47681e77e484
parent 26608 ae5b60d3294f
child 26610 f9f82c444ff7
filemerge: only print out "merging f" output at premerge step We're soon going to call this function twice, once for premerge and once for merge. This makes sure the "merging" output only gets printed during the premerge step.
mercurial/filemerge.py
--- a/mercurial/filemerge.py	Thu Oct 08 00:19:20 2015 -0700
+++ b/mercurial/filemerge.py	Sun Oct 11 20:02:53 2015 -0700
@@ -487,10 +487,11 @@
     if mergetype == nomerge:
         return True, func(repo, mynode, orig, fcd, fco, fca, toolconf)
 
-    if orig != fco.path():
-        ui.status(_("merging %s and %s to %s\n") % (orig, fco.path(), fd))
-    else:
-        ui.status(_("merging %s\n") % fd)
+    if premerge:
+        if orig != fco.path():
+            ui.status(_("merging %s and %s to %s\n") % (orig, fco.path(), fd))
+        else:
+            ui.status(_("merging %s\n") % fd)
 
     ui.debug("my %s other %s ancestor %s\n" % (fcd, fco, fca))