# HG changeset patch # User Siddharth Agarwal # Date 2015-11-14 07:57:43 # Node ID 30b919bc49bf892fc6c565423f1e5172ad05e21b # Parent 0e330f59ef68b41a3d09f3f0bf71fa801ecbee10 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. diff --git a/mercurial/filemerge.py b/mercurial/filemerge.py --- a/mercurial/filemerge.py +++ b/mercurial/filemerge.py @@ -447,6 +447,10 @@ def _idump(repo, mynode, orig, fcd, fco, 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(),