# HG changeset patch # User Pierre-Yves David # Date 2017-06-30 01:44:12 # Node ID 90a1b62bdc9181e5cc33316752b772c144181b60 # Parent ab9121fda8d21fe369ffb4d7b14b187922d8ff14 configitems: register the 'server.preferuncompressed' config diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -131,6 +131,9 @@ coreconfigitem('server', 'disablefullbun coreconfigitem('server', 'maxhttpheaderlen', default=1024, ) +coreconfigitem('server', 'preferuncompressed', + default=False, +) coreconfigitem('ui', 'clonebundleprefers', default=list, ) diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -755,7 +755,7 @@ def _capabilities(repo, proto): # 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