mercurial/debugcommands.py
changeset 32265 ccef71de7d41
parent 32256 9bc36198338e
child 32315 67026d65a4fc
--- 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')),