diff mercurial/patch.py @ 17968:a9f4a6076740

subrepo: use posixpath when diffing, for consistent paths This fixes a Windows failure in test-subrepo-recursion.t introduced by c84ef0047a94.
author Bryan O'Sullivan <bryano@fb.com>
date Tue, 27 Nov 2012 14:58:00 -0800
parents 1e13b1184292
children b35e3364f94a
line wrap: on
line diff
--- a/mercurial/patch.py	Tue Nov 27 13:09:05 2012 -0800
+++ b/mercurial/patch.py	Tue Nov 27 14:58:00 2012 -0800
@@ -6,7 +6,7 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-import cStringIO, email.Parser, os, errno, re
+import cStringIO, email.Parser, os, errno, re, posixpath
 import tempfile, zlib, shutil
 
 from i18n import _
@@ -1655,7 +1655,7 @@
             copy, getfilectx, opts, losedatafn, prefix):
 
     def join(f):
-        return os.path.join(prefix, f)
+        return posixpath.join(prefix, f)
 
     def addmodehdr(header, omode, nmode):
         if omode != nmode: