filemerge: add support for change/delete conflicts to the ':local' merge tool
authorSiddharth Agarwal <sid0@fb.com>
Wed, 18 Nov 2015 15:40:28 -0800
changeset 27036 63d6bc874dea
parent 27035 de7bf242644e
child 27037 a8908c139f2f
filemerge: add support for change/delete conflicts to the ':local' merge tool This covers two of the four cases of change/delete conflicts -- in an upcoming patch we'll make :other cover the other two.
mercurial/filemerge.py
--- a/mercurial/filemerge.py	Thu Nov 19 10:50:02 2015 -0800
+++ b/mercurial/filemerge.py	Wed Nov 18 15:40:28 2015 -0800
@@ -237,7 +237,7 @@
 @internaltool('local', nomerge)
 def _ilocal(repo, mynode, orig, fcd, fco, fca, toolconf):
     """Uses the local version of files as the merged version."""
-    return 0, False
+    return 0, fcd.isabsent()
 
 @internaltool('other', nomerge)
 def _iother(repo, mynode, orig, fcd, fco, fca, toolconf):