changeset 33227:86c9aa1d598f

configitems: register the 'server.validate' config
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Jun 2017 03:44:15 +0200
parents b045344fe35e
children 35c233975b78
files mercurial/changegroup.py mercurial/configitems.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,
 )