Show More
@@ -174,7 +174,7 b' class bundlerepository(localrepo.localre' | |||||
174 | self._url = 'bundle:' + bundlename |
|
174 | self._url = 'bundle:' + bundlename | |
175 |
|
175 | |||
176 | self.tempfile = None |
|
176 | self.tempfile = None | |
177 |
f = |
|
177 | f = util.posixfile(bundlename, "rb") | |
178 | self.bundle = changegroup.readbundle(f, bundlename) |
|
178 | self.bundle = changegroup.readbundle(f, bundlename) | |
179 | if self.bundle.compressed(): |
|
179 | if self.bundle.compressed(): | |
180 | fdtemp, temp = tempfile.mkstemp(prefix="hg-bundle-", |
|
180 | fdtemp, temp = tempfile.mkstemp(prefix="hg-bundle-", | |
@@ -192,7 +192,7 b' class bundlerepository(localrepo.localre' | |||||
192 | finally: |
|
192 | finally: | |
193 | fptemp.close() |
|
193 | fptemp.close() | |
194 |
|
194 | |||
195 |
f = |
|
195 | f = util.posixfile(self.tempfile, "rb") | |
196 | self.bundle = changegroup.readbundle(f, bundlename) |
|
196 | self.bundle = changegroup.readbundle(f, bundlename) | |
197 |
|
197 | |||
198 | # dict with the mapping 'filename' -> position in the bundle |
|
198 | # dict with the mapping 'filename' -> position in the bundle |
General Comments 0
You need to be logged in to leave comments.
Login now