changeset 26609:47681e77e484

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.
author Siddharth Agarwal <sid0@fb.com>
date Sun, 11 Oct 2015 20:02:53 -0700
parents ae5b60d3294f
children f9f82c444ff7
files mercurial/filemerge.py
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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))