Mercurial > hg
comparison mercurial/wireprotov2server.py @ 37783:9d818539abfa
wireproto: move supportedcompengines out of wireproto
This function is used by both version 1 and version 2. It belongs in
a common module.
"wireprototypes" may not be the best module name. I may rename it...
Differential Revision: https://phab.mercurial-scm.org/D3398
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 16 Apr 2018 22:08:13 -0700 |
parents | 99accae4cc59 |
children | ee0d5e9d77b2 |
comparison
equal
deleted
inserted
replaced
37782:99accae4cc59 | 37783:9d818539abfa |
---|---|
391 | 391 |
392 These capabilities are distinct from the capabilities for version 1 | 392 These capabilities are distinct from the capabilities for version 1 |
393 transports. | 393 transports. |
394 """ | 394 """ |
395 compression = [] | 395 compression = [] |
396 for engine in wireproto.supportedcompengines(repo.ui, util.SERVERROLE): | 396 for engine in wireprototypes.supportedcompengines(repo.ui, util.SERVERROLE): |
397 compression.append({ | 397 compression.append({ |
398 b'name': engine.wireprotosupport().name, | 398 b'name': engine.wireprotosupport().name, |
399 }) | 399 }) |
400 | 400 |
401 caps = { | 401 caps = { |