##// END OF EJS Templates
bundlerepo: don't assume there are only two bundle classes...
Gregory Szorc -
r35042:4f04c920 default
parent child Browse files
Show More
@@ -296,13 +296,16 b' class bundlerepository(localrepo.localre'
296 296
297 297 if not hadchangegroup:
298 298 raise error.Abort(_("No changegroups found"))
299
300 elif self.bundle.compressed():
301 f = self._writetempbundle(self.bundle.read, '.hg10un',
302 header='HG10UN')
303 self.bundlefile = self.bundle = exchange.readbundle(ui, f,
304 bundlepath,
305 self.vfs)
299 elif isinstance(self.bundle, changegroup.cg1unpacker):
300 if self.bundle.compressed():
301 f = self._writetempbundle(self.bundle.read, '.hg10un',
302 header='HG10UN')
303 self.bundlefile = self.bundle = exchange.readbundle(ui, f,
304 bundlepath,
305 self.vfs)
306 else:
307 raise error.Abort(_('bundle type %s cannot be read') %
308 type(self.bundle))
306 309
307 310 # dict with the mapping 'filename' -> position in the bundle
308 311 self.bundlefilespos = {}
General Comments 0
You need to be logged in to leave comments. Login now