filemerge: don't try using external tools on change/delete conflicts
This is mostly for completeness' sake -- the current code shouldn't get to this
point.
--- a/mercurial/filemerge.py Fri Nov 13 23:56:00 2015 -0800
+++ b/mercurial/filemerge.py Fri Nov 13 23:57:43 2015 -0800
@@ -447,6 +447,10 @@
def _xmerge(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels=None):
tool, toolpath, binary, symlink = toolconf
+ if fcd.isabsent() or fco.isabsent():
+ repo.ui.warn(_('warning: %s cannot merge change/delete conflict '
+ 'for %s\n') % (tool, fcd.path()))
+ return False, 1, None
a, b, c, back = files
out = ""
env = {'HG_FILE': fcd.path(),