Mercurial > hg-stable
changeset 42390:f66628c15e6f
narrow: pass binary nodeids to generateellipsesbundle2()
We generally work with binary nodeids and it's should be expected that new
function gets the nodeids in binary form already.
Differential Revision: https://phab.mercurial-scm.org/D6444
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Fri, 24 May 2019 15:57:00 +0300 |
parents | 96fc696a9cb2 |
children | 343b3ed35cb8 |
files | hgext/narrow/narrowbundle2.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/narrow/narrowbundle2.py Fri May 24 12:33:46 2019 +0200 +++ b/hgext/narrow/narrowbundle2.py Fri May 24 15:57:00 2019 +0300 @@ -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"