Patchwork D10729: updatecaches: use the caches argument in `hg debugupdatecaches`

login
register
mail settings
Submitter phabricator
Date May 18, 2021, 7:49 a.m.
Message ID <differential-rev-PHID-DREV-oazcpzyl2q5rdcofbstf-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49049/
State Superseded
Headers show

Comments

phabricator - May 18, 2021, 7:49 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This is the new way.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10729

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -91,6 +91,7 @@ 
     wireprotoserver,
     wireprotov2peer,
 )
+from .interfaces import repository
 from .utils import (
     cborutil,
     compression,
@@ -4047,7 +4048,7 @@ 
 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(