Mercurial > hg-stable
changeset 36387:0d5eaa97676b
narrowbundle2: drop legacy getcgkwargs variable
I think this was around as part of support for some older hg
internals. It's not needed any more.
Differential Revision: https://phab.mercurial-scm.org/D2386
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 21 Feb 2018 22:49:15 -0500 |
parents | cc9d0763c8e9 |
children | cd4f13f1ea2f |
files | hgext/narrow/narrowbundle2.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/narrow/narrowbundle2.py Wed Feb 21 20:05:29 2018 -0800 +++ b/hgext/narrow/narrowbundle2.py Wed Feb 21 22:49:15 2018 -0500 @@ -219,13 +219,12 @@ bundlecaps=None, b2caps=None, heads=None, common=None, **kwargs): cgversions = b2caps.get('changegroup') - getcgkwargs = {} if cgversions: # 3.1 and 3.2 ship with an empty value cgversions = [v for v in cgversions if v in changegroup.supportedoutgoingversions(repo)] if not cgversions: raise ValueError(_('no common changegroup version')) - version = getcgkwargs['version'] = max(cgversions) + version = max(cgversions) else: raise ValueError(_("server does not advertise changegroup version," " can't negotiate support for ellipsis nodes"))