--- 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,
)