[PATCH 5 of 8] caches: introduce a 'debugwarmcaches' command

Yuya Nishihara yuya at tcha.org
Wed May 3 03:52:41 EDT 2017


On Wed, 03 May 2017 01:43:42 +0200, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
> # Date 1493753706 -7200
> #      Tue May 02 21:35:06 2017 +0200
> # Branch stable
> # Node ID 7f3e26f6d05f0d65170616d77c38fd064911718f
> # Parent  a3dc2747c4e0eea11d6fce071d444e93bcde50c3
> # EXP-Topic obscache
> # Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
> #              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 7f3e26f6d05f
> caches: introduce a 'debugwarmcaches' command
> 
> That command make sure caches are updated. This is based on
> 'localrepo.updatecaches' so when we move support for new cache in that function this
> command will benefit from it.
> 
> diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
> --- a/mercurial/debugcommands.py
> +++ b/mercurial/debugcommands.py
> @@ -2050,6 +2050,13 @@ def debugtemplate(ui, repo, tmpl, **opts
>              displayer.show(repo[r], **props)
>          displayer.close()
>  
> + at command('debugupdatecaches', [])
> +def debugwalk(ui, repo, *pats, **opts):
       ^^^^^^^^^

Nit. could be fixed in flight.


More information about the Mercurial-devel mailing list