equal
deleted
inserted
replaced
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): |