Mercurial > hg > mercurial-source
changeset 34008:90a1b62bdc91
configitems: register the 'server.preferuncompressed' config
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:44:12 +0200 |
parents | ab9121fda8d2 |
children | b045344fe35e |
files | mercurial/configitems.py mercurial/wireproto.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -131,6 +131,9 @@ coreconfigitem('server', 'maxhttpheaderlen', default=1024, ) +coreconfigitem('server', 'preferuncompressed', + default=False, +) coreconfigitem('ui', 'clonebundleprefers', default=list, )
--- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -755,7 +755,7 @@ # copy to prevent modification of the global list caps = list(wireprotocaps) if streamclone.allowservergeneration(repo): - if repo.ui.configbool('server', 'preferuncompressed', False): + if repo.ui.configbool('server', 'preferuncompressed'): caps.append('stream-preferred') requiredformats = repo.requirements & repo.supportedformats # if our local revlogs are just revlogv1, add 'stream' cap