diff: always use / in paths in diff
authorMads Kiilerich <mads@kiilerich.com>
Mon, 07 Nov 2011 02:49:00 +0100
changeset 15437 8f08b635cdce
parent 15436 18f1bb70462e
child 15438 4d5b12a5517b
diff: always use / in paths in diff Subrepo diffs would sometimes use backslash on windows.
mercurial/mdiff.py
--- a/mercurial/mdiff.py	Mon Nov 07 02:49:00 2011 +0100
+++ b/mercurial/mdiff.py	Mon Nov 07 02:49:00 2011 +0100
@@ -100,6 +100,9 @@
         return ""
     epoch = util.datestr((0, 0))
 
+    fn1 = util.pconvert(fn1)
+    fn2 = util.pconvert(fn2)
+
     if not opts.text and (util.binary(a) or util.binary(b)):
         if a and b and len(a) == len(b) and a == b:
             return ""