D7096: widening: remove unused "heads" argument

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Mon Oct 14 13:57:15 EDT 2019


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

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"



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


More information about the Mercurial-devel mailing list