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 |