hgext/remotefilelog/shallowbundle.py
changeset 44381 454bc51f114c
parent 43506 9f70512ae2cf
child 46711 a41565bef69f
equal deleted inserted replaced
44380:dda2341d6664 44381:454bc51f114c
    52 
    52 
    53     yield self.close()
    53     yield self.close()
    54 
    54 
    55 
    55 
    56 class shallowcg1packer(changegroup.cgpacker):
    56 class shallowcg1packer(changegroup.cgpacker):
    57     def generate(self, commonrevs, clnodes, fastpathlinkrev, source):
    57     def generate(self, commonrevs, clnodes, fastpathlinkrev, source, **kwargs):
    58         if shallowutil.isenabled(self._repo):
    58         if shallowutil.isenabled(self._repo):
    59             fastpathlinkrev = False
    59             fastpathlinkrev = False
    60 
    60 
    61         return super(shallowcg1packer, self).generate(
    61         return super(shallowcg1packer, self).generate(
    62             commonrevs, clnodes, fastpathlinkrev, source
    62             commonrevs, clnodes, fastpathlinkrev, source, **kwargs
    63         )
    63         )
    64 
    64 
    65     def group(self, nodelist, rlog, lookup, units=None, reorder=None):
    65     def group(self, nodelist, rlog, lookup, units=None, reorder=None):
    66         return shallowgroup(
    66         return shallowgroup(
    67             shallowcg1packer, self, nodelist, rlog, lookup, units=units
    67             shallowcg1packer, self, nodelist, rlog, lookup, units=units