From patchwork Sun Jul 2 22:25:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [12,of,18] configitems: register the 'server.validate' config From: Pierre-Yves David X-Patchwork-Id: 21940 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Mon, 03 Jul 2017 00:25:29 +0200 # HG changeset patch # User Pierre-Yves David # Date 1498787055 -7200 # Fri Jun 30 03:44:15 2017 +0200 # Node ID a3f76daf381d30a3634f5827b069523c91546f82 # Parent ccb30e6a80bc3c522107b493b073b7fd969651b2 # EXP-Topic config.register.server # Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ # hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r a3f76daf381d 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 @@ -131,6 +131,9 @@ coreconfigitem('server', 'preferuncompre coreconfigitem('server', 'uncompressedallowsecret', default=False, ) +coreconfigitem('server', 'validate', + default=False, +) coreconfigitem('ui', 'clonebundleprefers', default=list, )