mercurial/simplemerge.py
changeset 48755 6ae3c97a0919
parent 48754 d9602f0df4f3
child 48758 7dad4665d223
--- a/mercurial/simplemerge.py	Thu Feb 10 15:48:01 2022 -0800
+++ b/mercurial/simplemerge.py	Fri Jan 14 08:17:13 2022 -0800
@@ -532,11 +532,4 @@
             lines, conflicts = render_minimized(m3, *labels)
 
     mergedtext = b''.join(lines)
-    if print_result:
-        ui.fout.write(mergedtext)
-    else:
-        # local.fctx.flags() already has the merged flags (done in
-        # mergestate.resolve())
-        local.fctx.write(mergedtext, local.fctx.flags())
-
-    return conflicts
+    return mergedtext, conflicts