comparison mercurial/debugcommands.py @ 36958:b24cde12061b

debugupdatecache: also warm rev branch cache We add basic code to have `debugupdatecache` ensure that the rev branch cache is fully warmed. This only affects the `debugupdatecache` command, not normal transaction operation.
author Boris Feld <boris.feld@octobus.net>
date Wed, 21 Feb 2018 17:21:10 +0100
parents c92d1d3c58ee
children efc4fb344c05
comparison
equal deleted inserted replaced
36957:c92d1d3c58ee 36958:b24cde12061b
2480 2480
2481 @command('debugupdatecaches', []) 2481 @command('debugupdatecaches', [])
2482 def debugupdatecaches(ui, repo, *pats, **opts): 2482 def debugupdatecaches(ui, repo, *pats, **opts):
2483 """warm all known caches in the repository""" 2483 """warm all known caches in the repository"""
2484 with repo.wlock(), repo.lock(): 2484 with repo.wlock(), repo.lock():
2485 repo.updatecaches() 2485 repo.updatecaches(full=True)
2486 2486
2487 @command('debugupgraderepo', [ 2487 @command('debugupgraderepo', [
2488 ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')), 2488 ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')),
2489 ('', 'run', False, _('performs an upgrade')), 2489 ('', 'run', False, _('performs an upgrade')),
2490 ]) 2490 ])