remotefilelog: add 'changelog' arg to shallowcg1packer.generate (issue6269) stable 5.3.1
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 19 Feb 2020 13:39:00 +0530
branchstable
changeset 44404 6d121acbb82e
parent 44403 fca7caeaa6e7
child 44414 25d61883a861
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	Fri Feb 28 11:22:47 2020 +0100
+++ 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):