Mercurial > hg-stable
changeset 33226: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 Fri Jun 30 03:44:12 2017 +0200 +++ b/mercurial/configitems.py Fri Jun 30 03:44:14 2017 +0200 @@ -134,6 +134,9 @@ coreconfigitem('server', 'preferuncompressed', default=False, ) +coreconfigitem('server', 'uncompressedallowsecret', + default=False, +) coreconfigitem('ui', 'clonebundleprefers', default=list, )
--- a/mercurial/streamclone.py Fri Jun 30 03:44:12 2017 +0200 +++ b/mercurial/streamclone.py Fri Jun 30 03:44:14 2017 +0200 @@ -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