# HG changeset patch # User Pierre-Yves David # Date 2017-06-30 01:44:15 # Node ID 86c9aa1d598f6dff2148eeda04d29c2df45d4393 # Parent b045344fe35ead3126a919477da4708d20ba2393 configitems: register the 'server.validate' config diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -309,7 +309,7 @@ class cg1unpacker(object): 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 diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -137,6 +137,9 @@ coreconfigitem('server', 'preferuncompre coreconfigitem('server', 'uncompressedallowsecret', default=False, ) +coreconfigitem('server', 'validate', + default=False, +) coreconfigitem('ui', 'clonebundleprefers', default=list, )