configitems: register the 'server.validate' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:44:15 +0200
changeset 33227 86c9aa1d598f
parent 33226 b045344fe35e
child 33228 35c233975b78
configitems: register the 'server.validate' config
mercurial/changegroup.py
mercurial/configitems.py
--- a/mercurial/changegroup.py	Fri Jun 30 03:44:14 2017 +0200
+++ b/mercurial/changegroup.py	Fri Jun 30 03:44:15 2017 +0200
@@ -309,7 +309,7 @@
             self._unpackmanifests(repo, revmap, trp, prog, changesets)
 
             needfiles = {}
-            if repo.ui.configbool('server', 'validate', default=False):
+            if repo.ui.configbool('server', 'validate'):
                 cl = repo.changelog
                 ml = repo.manifestlog
                 # validate incoming csets have their manifests
--- a/mercurial/configitems.py	Fri Jun 30 03:44:14 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:44:15 2017 +0200
@@ -137,6 +137,9 @@
 coreconfigitem('server', 'uncompressedallowsecret',
     default=False,
 )
+coreconfigitem('server', 'validate',
+    default=False,
+)
 coreconfigitem('ui', 'clonebundleprefers',
     default=list,
 )