comparison mercurial/changegroup.py @ 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 9f95f0bb343b
children 248d5890c80a
comparison
equal deleted inserted replaced
33226:b045344fe35e 33227:86c9aa1d598f
307 # pull off the manifest group 307 # pull off the manifest group
308 repo.ui.status(_("adding manifests\n")) 308 repo.ui.status(_("adding manifests\n"))
309 self._unpackmanifests(repo, revmap, trp, prog, changesets) 309 self._unpackmanifests(repo, revmap, trp, prog, changesets)
310 310
311 needfiles = {} 311 needfiles = {}
312 if repo.ui.configbool('server', 'validate', default=False): 312 if repo.ui.configbool('server', 'validate'):
313 cl = repo.changelog 313 cl = repo.changelog
314 ml = repo.manifestlog 314 ml = repo.manifestlog
315 # validate incoming csets have their manifests 315 # validate incoming csets have their manifests
316 for cset in xrange(clstart, clend): 316 for cset in xrange(clstart, clend):
317 mfnode = cl.changelogrevision(cset).manifest 317 mfnode = cl.changelogrevision(cset).manifest