Mercurial > hg > mercurial-source
changeset 34009:b045344fe35e
configitems: register the 'server.uncompressedallowsecret' config
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:44:14 +0200 |
parents | 90a1b62bdc91 |
children | 86c9aa1d598f |
files | mercurial/configitems.py mercurial/streamclone.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -134,6 +134,9 @@ coreconfigitem('server', 'preferuncompressed', default=False, ) +coreconfigitem('server', 'uncompressedallowsecret', + default=False, +) coreconfigitem('ui', 'clonebundleprefers', default=list, )
--- a/mercurial/streamclone.py +++ b/mercurial/streamclone.py @@ -172,7 +172,7 @@ # So don't allow this by default. secret = phases.hassecret(repo) if secret: - return repo.ui.configbool('server', 'uncompressedallowsecret', False) + return repo.ui.configbool('server', 'uncompressedallowsecret') return True