Mercurial > public > mercurial-scm > hg
comparison mercurial/wireproto.py @ 34613:5e61cd5fb0fc
configitems: register the 'server.bundle*' family of config
All these config use the same function specifying a default value. We need to
register them all at the same time.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 11 Oct 2017 17:51:40 +0200 |
parents | 10e162bb9bf5 |
children | daf12f69699f |
comparison
equal
deleted
inserted
replaced
34612:c2cb6be4212f | 34613:5e61cd5fb0fc |
---|---|
593 """ | 593 """ |
594 ui = repo.ui | 594 ui = repo.ui |
595 gd = 'generaldelta' in repo.requirements | 595 gd = 'generaldelta' in repo.requirements |
596 | 596 |
597 if gd: | 597 if gd: |
598 v = ui.configbool('server', 'bundle1gd.%s' % action, None) | 598 v = ui.configbool('server', 'bundle1gd.%s' % action) |
599 if v is not None: | 599 if v is not None: |
600 return v | 600 return v |
601 | 601 |
602 v = ui.configbool('server', 'bundle1.%s' % action, None) | 602 v = ui.configbool('server', 'bundle1.%s' % action) |
603 if v is not None: | 603 if v is not None: |
604 return v | 604 return v |
605 | 605 |
606 if gd: | 606 if gd: |
607 v = ui.configbool('server', 'bundle1gd') | 607 v = ui.configbool('server', 'bundle1gd') |