Show More
@@ -216,7 +216,7 b' class bundlerepository(localrepo.localre' | |||
|
216 | 216 | |
|
217 | 217 | self.tempfile = None |
|
218 | 218 | f = util.posixfile(bundlename, "rb") |
|
219 | self.bundle = exchange.readbundle(ui, f, bundlename) | |
|
219 | self.bundlefile = self.bundle = exchange.readbundle(ui, f, bundlename) | |
|
220 | 220 | if self.bundle.compressed(): |
|
221 | 221 | fdtemp, temp = self.vfs.mkstemp(prefix="hg-bundle-", |
|
222 | 222 | suffix=".hg10un") |
@@ -234,7 +234,9 b' class bundlerepository(localrepo.localre' | |||
|
234 | 234 | fptemp.close() |
|
235 | 235 | |
|
236 | 236 | f = self.vfs.open(self.tempfile, mode="rb") |
|
237 |
self.bundle = exchange.readbundle(ui, f, |
|
|
237 | self.bundlefile = self.bundle = exchange.readbundle(ui, f, | |
|
238 | bundlename, | |
|
239 | self.vfs) | |
|
238 | 240 | |
|
239 | 241 | # dict with the mapping 'filename' -> position in the bundle |
|
240 | 242 | self.bundlefilespos = {} |
@@ -300,7 +302,7 b' class bundlerepository(localrepo.localre' | |||
|
300 | 302 | |
|
301 | 303 | def close(self): |
|
302 | 304 | """Close assigned bundle file immediately.""" |
|
303 | self.bundle.close() | |
|
305 | self.bundlefile.close() | |
|
304 | 306 | if self.tempfile is not None: |
|
305 | 307 | self.vfs.unlink(self.tempfile) |
|
306 | 308 | if self._tempparent: |
General Comments 0
You need to be logged in to leave comments.
Login now