mercurial/wireproto.py
changeset 25149 3f0744eeaeaf
parent 25128 631766d1f57a
child 25179 6dbbb4fa1892
equal deleted inserted replaced
25148:3b5cd6f13dcc 25149:3f0744eeaeaf
   365             elif keytype != 'plain':
   365             elif keytype != 'plain':
   366                 raise KeyError('unknown getbundle option type %s'
   366                 raise KeyError('unknown getbundle option type %s'
   367                                % keytype)
   367                                % keytype)
   368             opts[key] = value
   368             opts[key] = value
   369         f = self._callcompressable("getbundle", **opts)
   369         f = self._callcompressable("getbundle", **opts)
   370         if util.any((cap.startswith('HG2') for cap in bundlecaps)):
   370         if any((cap.startswith('HG2') for cap in bundlecaps)):
   371             return bundle2.getunbundler(self.ui, f)
   371             return bundle2.getunbundler(self.ui, f)
   372         else:
   372         else:
   373             return changegroupmod.cg1unpacker(f, 'UN')
   373             return changegroupmod.cg1unpacker(f, 'UN')
   374 
   374 
   375     def unbundle(self, cg, heads, source):
   375     def unbundle(self, cg, heads, source):