mercurial/wireproto.py
changeset 23009 90f86ad3d4ff
parent 22390 e2806b8613ca
child 23139 e53f6b72a0e4
equal deleted inserted replaced
23008:d3137827016a 23009:90f86ad3d4ff
   357                 raise KeyError('unknown getbundle option type %s'
   357                 raise KeyError('unknown getbundle option type %s'
   358                                % keytype)
   358                                % keytype)
   359             opts[key] = value
   359             opts[key] = value
   360         f = self._callcompressable("getbundle", **opts)
   360         f = self._callcompressable("getbundle", **opts)
   361         bundlecaps = kwargs.get('bundlecaps')
   361         bundlecaps = kwargs.get('bundlecaps')
   362         if bundlecaps is not None and 'HG2X' in bundlecaps:
   362         if bundlecaps is not None and 'HG2Y' in bundlecaps:
   363             return bundle2.unbundle20(self.ui, f)
   363             return bundle2.unbundle20(self.ui, f)
   364         else:
   364         else:
   365             return changegroupmod.cg1unpacker(f, 'UN')
   365             return changegroupmod.cg1unpacker(f, 'UN')
   366 
   366 
   367     def unbundle(self, cg, heads, source):
   367     def unbundle(self, cg, heads, source):