Show More
@@ -587,7 +587,7 b' def bundle1allowed(repo, action):' | |||||
587 |
|
587 | |||
588 | return ui.configbool('server', 'bundle1') |
|
588 | return ui.configbool('server', 'bundle1') | |
589 |
|
589 | |||
590 |
def supportedcompengines(ui, |
|
590 | def supportedcompengines(ui, role): | |
591 | """Obtain the list of supported compression engines for a request.""" |
|
591 | """Obtain the list of supported compression engines for a request.""" | |
592 | assert role in (util.CLIENTROLE, util.SERVERROLE) |
|
592 | assert role in (util.CLIENTROLE, util.SERVERROLE) | |
593 |
|
593 | |||
@@ -824,7 +824,7 b' def _capabilities(repo, proto):' | |||||
824 | # FUTURE advertise minrx and mintx after consulting config option |
|
824 | # FUTURE advertise minrx and mintx after consulting config option | |
825 | caps.append('httpmediatype=0.1rx,0.1tx,0.2tx') |
|
825 | caps.append('httpmediatype=0.1rx,0.1tx,0.2tx') | |
826 |
|
826 | |||
827 |
compengines = supportedcompengines(repo.ui, |
|
827 | compengines = supportedcompengines(repo.ui, util.SERVERROLE) | |
828 | if compengines: |
|
828 | if compengines: | |
829 | comptypes = ','.join(urlreq.quote(e.wireprotosupport().name) |
|
829 | comptypes = ','.join(urlreq.quote(e.wireprotosupport().name) | |
830 | for e in compengines) |
|
830 | for e in compengines) |
@@ -192,7 +192,7 b' class webproto(baseprotocolhandler):' | |||||
192 | break |
|
192 | break | |
193 |
|
193 | |||
194 | # Now find an agreed upon compression format. |
|
194 | # Now find an agreed upon compression format. | |
195 |
for engine in wireproto.supportedcompengines(self._ui, |
|
195 | for engine in wireproto.supportedcompengines(self._ui, | |
196 | util.SERVERROLE): |
|
196 | util.SERVERROLE): | |
197 | if engine.wireprotosupport().name in compformats: |
|
197 | if engine.wireprotosupport().name in compformats: | |
198 | opts = {} |
|
198 | opts = {} |
General Comments 0
You need to be logged in to leave comments.
Login now