diff mercurial/filemerge.py @ 10533:184cdb66263e stable

filemerge: use native path separators when merging (issue1399)
author Patrick Mezard <pmezard@gmail.com>
date Tue, 23 Feb 2010 23:19:09 +0100
parents 23e608f42f2c
children 6f1894d6a6b0
line wrap: on
line diff
--- 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"):