--- a/mercurial/bundlerepo.py Sat Jan 15 23:54:01 2011 +0100
+++ b/mercurial/bundlerepo.py Fri Jan 07 10:48:30 2011 +0100
@@ -174,7 +174,7 @@
self._url = 'bundle:' + bundlename
self.tempfile = None
- f = open(bundlename, "rb")
+ f = util.posixfile(bundlename, "rb")
self.bundle = changegroup.readbundle(f, bundlename)
if self.bundle.compressed():
fdtemp, temp = tempfile.mkstemp(prefix="hg-bundle-",
@@ -192,7 +192,7 @@
finally:
fptemp.close()
- f = open(self.tempfile, "rb")
+ f = util.posixfile(self.tempfile, "rb")
self.bundle = changegroup.readbundle(f, bundlename)
# dict with the mapping 'filename' -> position in the bundle