--- a/mercurial/wireproto.py Thu Feb 01 17:12:07 2018 -0800
+++ b/mercurial/wireproto.py Wed Feb 07 20:22:44 2018 -0800
@@ -587,7 +587,7 @@
return ui.configbool('server', 'bundle1')
-def supportedcompengines(ui, proto, role):
+def supportedcompengines(ui, role):
"""Obtain the list of supported compression engines for a request."""
assert role in (util.CLIENTROLE, util.SERVERROLE)
@@ -824,7 +824,7 @@
# FUTURE advertise minrx and mintx after consulting config option
caps.append('httpmediatype=0.1rx,0.1tx,0.2tx')
- compengines = supportedcompengines(repo.ui, proto, util.SERVERROLE)
+ compengines = supportedcompengines(repo.ui, util.SERVERROLE)
if compengines:
comptypes = ','.join(urlreq.quote(e.wireprotosupport().name)
for e in compengines)