Patchwork D7096: widening: remove unused "heads" argument

login
register
mail settings
Submitter phabricator
Date Oct. 14, 2019, 5:57 p.m.
Message ID <differential-rev-PHID-DREV-3mhcrgah7wcz7wxhqkkn-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42334/
State Superseded
Headers show

Comments

phabricator - Oct. 14, 2019, 5:57 p.m.
martinvonz created this revision.
Herald added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/narrow/narrowbundle2.py
  hgext/narrow/narrowwirepeer.py

CHANGE DETAILS




To: martinvonz, durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/narrow/narrowwirepeer.py b/hgext/narrow/narrowwirepeer.py
--- a/hgext/narrow/narrowwirepeer.py
+++ b/hgext/narrow/narrowwirepeer.py
@@ -129,7 +129,6 @@ 
                 newexcludes,
                 cgversion,
                 common,
-                list(common),
                 known,
                 None,
             )
diff --git a/hgext/narrow/narrowbundle2.py b/hgext/narrow/narrowbundle2.py
--- a/hgext/narrow/narrowbundle2.py
+++ b/hgext/narrow/narrowbundle2.py
@@ -120,7 +120,6 @@ 
     newexclude,
     version,
     common,
-    heads,
     known,
     depth,
 ):
@@ -132,7 +131,6 @@ 
         if depth < 1:
             raise error.Abort(_(b'depth must be positive, got %d') % depth)
 
-    heads = set(heads or repo.heads())
     common = set(common or [nullid])
     # Steps:
     # 1. Send kill for "$known & ::common"