filemerge: use native path separators when merging (
issue1399)
--- a/mercurial/filemerge.py Tue Feb 23 11:37:40 2010 -0500
+++ b/mercurial/filemerge.py Tue Feb 23 23:19:09 2010 +0100
@@ -205,7 +205,7 @@
out, a = a, back # read input from backup, write to original
replace = dict(local=a, base=b, other=c, output=out)
args = re.sub("\$(local|base|other|output)",
- lambda x: '"%s"' % replace[x.group()[1:]], args)
+ lambda x: '"%s"' % util.localpath(replace[x.group()[1:]]), args)
r = util.system(toolpath + ' ' + args, cwd=repo.root, environ=env)
if not r and _toolbool(ui, tool, "checkconflicts"):