mercurial/bundlerepo.py
changeset 50201 149f09ffef46
parent 50200 197204dba8a2
child 50437 3a2df812e1c7
equal deleted inserted replaced
50200:197204dba8a2 50201:149f09ffef46
   324 
   324 
   325         elif isinstance(bundle, changegroup.cg1unpacker):
   325         elif isinstance(bundle, changegroup.cg1unpacker):
   326             self._handle_bundle1(bundle, bundlepath)
   326             self._handle_bundle1(bundle, bundlepath)
   327         else:
   327         else:
   328             raise error.Abort(
   328             raise error.Abort(
   329                 _(b'bundle type %s cannot be read') % type(bundle)
   329                 _(b'bundle type %r cannot be read') % type(bundle)
   330             )
   330             )
   331 
   331 
   332     def _handle_bundle1(self, bundle, bundlepath):
   332     def _handle_bundle1(self, bundle, bundlepath):
   333         if bundle.compressed():
   333         if bundle.compressed():
   334             f = self._writetempbundle(bundle.read, b'.hg10un', header=b'HG10UN')
   334             f = self._writetempbundle(bundle.read, b'.hg10un', header=b'HG10UN')