changeset 36383:ff7a19ad7aa3

narrowchangegroup: remove backwards compatibility with old hg This was missed in the initial import of narrowhg, but was detected by the Python 3 porting effort once I got enough other things in narrow fixed. Differential Revision: https://phab.mercurial-scm.org/D2370
author Augie Fackler <augie@google.com>
date Wed, 21 Feb 2018 12:03:44 -0500
parents 658d694a656e
children 87e950a070e6
files hgext/narrow/narrowchangegroup.py
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/narrow/narrowchangegroup.py	Wed Feb 21 19:11:11 2018 -0800
+++ b/hgext/narrow/narrowchangegroup.py	Wed Feb 21 12:03:44 2018 -0500
@@ -215,13 +215,8 @@
         # weren't introduced by that manifest.
         fastpathlinkrev = fastpathlinkrev and not self.is_shallow
 
-        moreargs = []
-        if self.generatemanifests.func_code.co_argcount == 7:
-            # The source argument was added to generatemanifests in hg in
-            # 75cc1f1e11f2 (2017/09/11).
-            moreargs.append(source)
         for chunk in self.generatemanifests(commonrevs, clrevorder,
-                fastpathlinkrev, mfs, fnodes, *moreargs):
+                fastpathlinkrev, mfs, fnodes, source):
             yield chunk
         # BEGIN NARROW HACK
         mfdicts = None