Show More
@@ -289,13 +289,16 b' class bundlerepository:' | |||||
289 |
|
289 | |||
290 | self.ui.setconfig(b'phases', b'publish', False, b'bundlerepo') |
|
290 | self.ui.setconfig(b'phases', b'publish', False, b'bundlerepo') | |
291 |
|
291 | |||
|
292 | # dict with the mapping 'filename' -> position in the changegroup. | |||
|
293 | self._cgfilespos = {} | |||
|
294 | self._bundlefile = None | |||
|
295 | self._cgunpacker = None | |||
292 | self.tempfile = None |
|
296 | self.tempfile = None | |
293 | f = util.posixfile(bundlepath, b"rb") |
|
297 | f = util.posixfile(bundlepath, b"rb") | |
294 | bundle = exchange.readbundle(self.ui, f, bundlepath) |
|
298 | bundle = exchange.readbundle(self.ui, f, bundlepath) | |
295 |
|
299 | |||
296 | if isinstance(bundle, bundle2.unbundle20): |
|
300 | if isinstance(bundle, bundle2.unbundle20): | |
297 | self._bundlefile = bundle |
|
301 | self._bundlefile = bundle | |
298 | self._cgunpacker = None |
|
|||
299 |
|
302 | |||
300 | cgpart = None |
|
303 | cgpart = None | |
301 | for part in bundle.iterparts(seekable=True): |
|
304 | for part in bundle.iterparts(seekable=True): | |
@@ -324,9 +327,6 b' class bundlerepository:' | |||||
324 | _(b'bundle type %s cannot be read') % type(bundle) |
|
327 | _(b'bundle type %s cannot be read') % type(bundle) | |
325 | ) |
|
328 | ) | |
326 |
|
329 | |||
327 | # dict with the mapping 'filename' -> position in the changegroup. |
|
|||
328 | self._cgfilespos = {} |
|
|||
329 |
|
||||
330 | self.firstnewrev = self.changelog.repotiprev + 1 |
|
330 | self.firstnewrev = self.changelog.repotiprev + 1 | |
331 | phases.retractboundary( |
|
331 | phases.retractboundary( | |
332 | self, |
|
332 | self, |
General Comments 0
You need to be logged in to leave comments.
Login now