mercurial/changegroup.py
changeset 19201 309c439cdbaa
parent 19200 4cfdec944edf
child 19202 0455fc94ae00
equal deleted inserted replaced
19200:4cfdec944edf 19201:309c439cdbaa
   223         raise util.Abort(_('%s: unknown bundle version %s') % (fname, version))
   223         raise util.Abort(_('%s: unknown bundle version %s') % (fname, version))
   224     return unbundle10(fh, alg)
   224     return unbundle10(fh, alg)
   225 
   225 
   226 class bundle10(object):
   226 class bundle10(object):
   227     deltaheader = _BUNDLE10_DELTA_HEADER
   227     deltaheader = _BUNDLE10_DELTA_HEADER
   228     def __init__(self):
   228     def __init__(self, bundlecaps=None):
   229         pass
   229         # Set of capabilities we can use to build the bundle.
       
   230         if bundlecaps is None:
       
   231             bundlecaps = set()
       
   232         self._bundlecaps = bundlecaps
   230     def start(self, lookup):
   233     def start(self, lookup):
   231         self._lookup = lookup
   234         self._lookup = lookup
   232     def close(self):
   235     def close(self):
   233         return closechunk()
   236         return closechunk()
   234 
   237