diff -r a72caf0af38e -r ccef71de7d41 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Tue May 02 19:05:58 2017 +0200 +++ b/mercurial/debugcommands.py Tue May 02 21:35:06 2017 +0200 @@ -2130,6 +2130,13 @@ displayer.show(repo[r], **props) displayer.close() +@command('debugupdatecaches', []) +def debugupdatecaches(ui, repo, *pats, **opts): + """warm all known caches in the repository""" + with repo.wlock(): + with repo.lock(): + repo.updatecaches() + @command('debugupgraderepo', [ ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')), ('', 'run', False, _('performs an upgrade')),