Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 47298:e96f75857361
updatecaches: use the caches argument in `hg debugupdatecaches`
This is the new way.
Differential Revision: https://phab.mercurial-scm.org/D10729
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 17 May 2021 15:27:29 +0200 |
parents | f58a13c52726 |
children | 3b9914b28133 |
comparison
equal
deleted
inserted
replaced
47297:1337bfaa88ca | 47298:e96f75857361 |
---|---|
89 vfs as vfsmod, | 89 vfs as vfsmod, |
90 wireprotoframing, | 90 wireprotoframing, |
91 wireprotoserver, | 91 wireprotoserver, |
92 wireprotov2peer, | 92 wireprotov2peer, |
93 ) | 93 ) |
94 from .interfaces import repository | |
94 from .utils import ( | 95 from .utils import ( |
95 cborutil, | 96 cborutil, |
96 compression, | 97 compression, |
97 dateutil, | 98 dateutil, |
98 procutil, | 99 procutil, |
4045 | 4046 |
4046 @command(b'debugupdatecaches', []) | 4047 @command(b'debugupdatecaches', []) |
4047 def debugupdatecaches(ui, repo, *pats, **opts): | 4048 def debugupdatecaches(ui, repo, *pats, **opts): |
4048 """warm all known caches in the repository""" | 4049 """warm all known caches in the repository""" |
4049 with repo.wlock(), repo.lock(): | 4050 with repo.wlock(), repo.lock(): |
4050 repo.updatecaches(full=True) | 4051 repo.updatecaches(caches=repository.CACHES_ALL) |
4051 | 4052 |
4052 | 4053 |
4053 @command( | 4054 @command( |
4054 b'debugupgraderepo', | 4055 b'debugupgraderepo', |
4055 [ | 4056 [ |