configitems: register the 'server.uncompressedallowsecret' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:44:14 +0200
changeset 33226 b045344fe35e
parent 33225 90a1b62bdc91
child 33227 86c9aa1d598f
configitems: register the 'server.uncompressedallowsecret' config
mercurial/configitems.py
mercurial/streamclone.py
--- 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