remotefilelog: add 'changelog' arg to shallowcg1packer.generate (issue6269)
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 19 Feb 2020 13:39:00 +0530
changeset 44381 454bc51f114c
parent 44380 dda2341d6664
child 44382 f0027a3dd7cb
remotefilelog: add 'changelog' arg to shallowcg1packer.generate (issue6269) This cause traceback on widening using narrow extension when remotefilelog is enabled. Differential Revision: https://phab.mercurial-scm.org/D8134
hgext/remotefilelog/shallowbundle.py
--- a/hgext/remotefilelog/shallowbundle.py	Tue Feb 25 12:41:35 2020 -0800
+++ b/hgext/remotefilelog/shallowbundle.py	Wed Feb 19 13:39:00 2020 +0530
@@ -54,12 +54,12 @@
 
 
 class shallowcg1packer(changegroup.cgpacker):
-    def generate(self, commonrevs, clnodes, fastpathlinkrev, source):
+    def generate(self, commonrevs, clnodes, fastpathlinkrev, source, **kwargs):
         if shallowutil.isenabled(self._repo):
             fastpathlinkrev = False
 
         return super(shallowcg1packer, self).generate(
-            commonrevs, clnodes, fastpathlinkrev, source
+            commonrevs, clnodes, fastpathlinkrev, source, **kwargs
         )
 
     def group(self, nodelist, rlog, lookup, units=None, reorder=None):