merge: never do premerge on symlinks
Simplemerge is not symlink aware and will never do the right thing on symlinks.
--- a/mercurial/filemerge.py Tue Jan 08 04:15:41 2013 +0100
+++ b/mercurial/filemerge.py Tue Jan 08 04:15:46 2013 +0100
@@ -171,13 +171,15 @@
def _premerge(repo, toolconf, files):
tool, toolpath, binary, symlink = toolconf
+ if symlink:
+ return 1
a, b, c, back = files
ui = repo.ui
# do we attempt to simplemerge first?
try:
- premerge = _toolbool(ui, tool, "premerge", not (binary or symlink))
+ premerge = _toolbool(ui, tool, "premerge", not binary)
except error.ConfigError:
premerge = _toolstr(ui, tool, "premerge").lower()
valid = 'keep'.split()