mercurial/filemerge.py
branchstable
changeset 10533 184cdb66263e
parent 10339 23e608f42f2c
child 10944 6f1894d6a6b0
--- 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"):