# HG changeset patch # User Pierre-Yves David # Date 2021-05-17 13:27:29 # Node ID e96f75857361ec1f8f0e367cd0b273fe7ba0ba40 # Parent 1337bfaa88cacd04cd7c254819471a777e401bf1 updatecaches: use the caches argument in `hg debugupdatecaches` This is the new way. Differential Revision: https://phab.mercurial-scm.org/D10729 diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -91,6 +91,7 @@ from . import ( wireprotoserver, wireprotov2peer, ) +from .interfaces import repository from .utils import ( cborutil, compression, @@ -4047,7 +4048,7 @@ def debuguiprompt(ui, prompt=b''): def debugupdatecaches(ui, repo, *pats, **opts): """warm all known caches in the repository""" with repo.wlock(), repo.lock(): - repo.updatecaches(full=True) + repo.updatecaches(caches=repository.CACHES_ALL) @command(