comparison mercurial/wireproto.py @ 33219:ffb1d0f541f5

configitems: register the 'server.bundle1' config
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Jun 2017 03:44:06 +0200
parents 4c2a46f89f08
children 40861b2254a5
comparison
equal deleted inserted replaced
33218:24f3ff50736d 33219:ffb1d0f541f5
606 if gd: 606 if gd:
607 v = ui.configbool('server', 'bundle1gd', None) 607 v = ui.configbool('server', 'bundle1gd', None)
608 if v is not None: 608 if v is not None:
609 return v 609 return v
610 610
611 return ui.configbool('server', 'bundle1', True) 611 return ui.configbool('server', 'bundle1')
612 612
613 def supportedcompengines(ui, proto, role): 613 def supportedcompengines(ui, proto, role):
614 """Obtain the list of supported compression engines for a request.""" 614 """Obtain the list of supported compression engines for a request."""
615 assert role in (util.CLIENTROLE, util.SERVERROLE) 615 assert role in (util.CLIENTROLE, util.SERVERROLE)
616 616