D2370: narrowchangegroup: remove backwards compatibility with old hg

2018-02-21 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGff7a19ad7aa3: narrowchangegroup: remove backwards 
compatibility with old hg (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2370?vs=5950=5976

REVISION DETAIL
  https://phab.mercurial-scm.org/D2370

AFFECTED FILES
  hgext/narrow/narrowchangegroup.py

CHANGE DETAILS

diff --git a/hgext/narrow/narrowchangegroup.py 
b/hgext/narrow/narrowchangegroup.py
--- a/hgext/narrow/narrowchangegroup.py
+++ b/hgext/narrow/narrowchangegroup.py
@@ -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



To: durin42, #hg-reviewers, pulkit, indygreg
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D2370: narrowchangegroup: remove backwards compatibility with old hg

2018-02-21 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2370

AFFECTED FILES
  hgext/narrow/narrowchangegroup.py

CHANGE DETAILS

diff --git a/hgext/narrow/narrowchangegroup.py 
b/hgext/narrow/narrowchangegroup.py
--- a/hgext/narrow/narrowchangegroup.py
+++ b/hgext/narrow/narrowchangegroup.py
@@ -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



To: durin42, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel