--- 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: