diff 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
line wrap: on
line diff
--- a/mercurial/wireprotov2server.py	Mon Apr 16 22:00:52 2018 -0700
+++ b/mercurial/wireprotov2server.py	Mon Apr 16 22:08:13 2018 -0700
@@ -393,7 +393,7 @@
     transports.
     """
     compression = []
-    for engine in wireproto.supportedcompengines(repo.ui, util.SERVERROLE):
+    for engine in wireprototypes.supportedcompengines(repo.ui, util.SERVERROLE):
         compression.append({
             b'name': engine.wireprotosupport().name,
         })