Mercurial > public > mercurial-scm > hg
diff mercurial/wireprotov2server.py @ 40122:9b19b8ce3804
wireprotov2: remove "compression" from capabilities response
This is not used. And future commits will change how this mechanism
works. Let's remove it.
As a bonus, this fixes some test failures on pure installs (due to
zstd references).
Differential Revision: https://phab.mercurial-scm.org/D4912
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 08 Oct 2018 17:20:41 -0700 |
parents | 39074a35f7db |
children | 293835e0fff7 |
line wrap: on
line diff
--- a/mercurial/wireprotov2server.py Mon Oct 08 16:27:40 2018 -0700 +++ b/mercurial/wireprotov2server.py Mon Oct 08 17:20:41 2018 -0700 @@ -20,7 +20,6 @@ error, narrowspec, pycompat, - util, wireprotoframing, wireprototypes, ) @@ -486,15 +485,8 @@ These capabilities are distinct from the capabilities for version 1 transports. """ - compression = [] - for engine in wireprototypes.supportedcompengines(repo.ui, util.SERVERROLE): - compression.append({ - b'name': engine.wireprotosupport().name, - }) - caps = { 'commands': {}, - 'compression': compression, 'framingmediatypes': [FRAMINGTYPE], 'pathfilterprefixes': set(narrowspec.VALID_PREFIXES), }