##// END OF EJS Templates
bundlerepo: use less intrusive util.posixfile to open bundle
Adrian Buehlmann -
r13274:57d433f6 default
parent child Browse files
Show More
@@ -174,7 +174,7 b' class bundlerepository(localrepo.localre'
174 174 self._url = 'bundle:' + bundlename
175 175
176 176 self.tempfile = None
177 f = open(bundlename, "rb")
177 f = util.posixfile(bundlename, "rb")
178 178 self.bundle = changegroup.readbundle(f, bundlename)
179 179 if self.bundle.compressed():
180 180 fdtemp, temp = tempfile.mkstemp(prefix="hg-bundle-",
@@ -192,7 +192,7 b' class bundlerepository(localrepo.localre'
192 192 finally:
193 193 fptemp.close()
194 194
195 f = open(self.tempfile, "rb")
195 f = util.posixfile(self.tempfile, "rb")
196 196 self.bundle = changegroup.readbundle(f, bundlename)
197 197
198 198 # dict with the mapping 'filename' -> position in the bundle
General Comments 0
You need to be logged in to leave comments. Login now