widening: remove unused "heads" argument
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 11 Oct 2019 00:03:10 -0700
changeset 43246 0fd47eb508c6
parent 43245 c320887c8e1c
child 43247 599e0e62b597
widening: remove unused "heads" argument Differential Revision: https://phab.mercurial-scm.org/D7096
hgext/narrow/narrowbundle2.py
hgext/narrow/narrowwirepeer.py
--- a/hgext/narrow/narrowbundle2.py	Thu Oct 10 22:36:55 2019 -0700
+++ b/hgext/narrow/narrowbundle2.py	Fri Oct 11 00:03:10 2019 -0700
@@ -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"
--- a/hgext/narrow/narrowwirepeer.py	Thu Oct 10 22:36:55 2019 -0700
+++ b/hgext/narrow/narrowwirepeer.py	Fri Oct 11 00:03:10 2019 -0700
@@ -129,7 +129,6 @@
                 newexcludes,
                 cgversion,
                 common,
-                list(common),
                 known,
                 None,
             )