Patchwork D6444: narrow: pass binary nodeids to generateellipsesbundle2()

login
register
mail settings
Submitter phabricator
Date May 24, 2019, 2:24 p.m.
Message ID <b302a0e2a4a00cb234693a1d4ca26905@localhost.localdomain>
Download mbox | patch
Permalink /patch/40228/
State Not Applicable
Headers show

Comments

phabricator - May 24, 2019, 2:24 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf66628c15e6f: narrow: pass binary nodeids to generateellipsesbundle2() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6444?vs=15251&id=15254

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

AFFECTED FILES
  hgext/narrow/narrowbundle2.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/narrow/narrowbundle2.py b/hgext/narrow/narrowbundle2.py
--- a/hgext/narrow/narrowbundle2.py
+++ b/hgext/narrow/narrowbundle2.py
@@ -61,8 +61,9 @@ 
     oldexclude = sorted(filter(bool, kwargs.get(r'oldexcludepats', [])))
     newinclude = sorted(filter(bool, kwargs.get(r'includepats', [])))
     newexclude = sorted(filter(bool, kwargs.get(r'excludepats', [])))
+    known = {bin(n) for n in kwargs.get('known', [])}
     generateellipsesbundle2(bundler, repo, oldinclude, oldexclude, newinclude,
-            newexclude, version, common, kwargs.get('known', []),
+            newexclude, version, common, known,
             kwargs.get(r'depth', None), heads)
 
 def generateellipsesbundle2(bundler, repo, oldinclude, oldexclude, newinclude,
@@ -76,7 +77,6 @@ 
 
     heads = set(heads or repo.heads())
     common = set(common or [nullid])
-    known = {bin(n) for n in known}
     if known and (oldinclude != newinclude or oldexclude != newexclude):
         # Steps:
         # 1. Send kill for "$known & ::common"