changeset 44193:6d121acbb82e stable 5.3.1

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 19 Feb 2020 13:39:00 +0530
parents fca7caeaa6e7
children 25d61883a861
files hgext/remotefilelog/shallowbundle.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):