Skip to content
Snippets Groups Projects
Commit e51161b12c7e authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

rev-branch-cache: have debugupdatecache warm rbc too

Since the "v2" format can be more performant than the "v1" format (thanks to
mmap), it is useful to be able to make sure it is present
parent 16efed18ae4e
No related branches found
No related tags found
4 merge requests!1041Merge default into stable,!997tests: use shlex.quote instead of pipes.quote,!958rev-branch-cache: move to a "v2" naming,!956make rev branch cache mmaped by default
......@@ -82,6 +82,7 @@
CACHE_BRANCHMAP_SERVED,
CACHE_BRANCHMAP_ALL,
CACHE_BRANCHMAP_DETECT_PURE_TOPO,
CACHE_REV_BRANCH,
CACHE_CHANGELOG_CACHE,
CACHE_FILE_NODE_TAGS,
CACHE_FULL_MANIFEST,
......
......@@ -920,6 +920,18 @@
.hg/cache/rbc-revs-v1: size=160
.hg/cache/rbc-revs-v2: size=168
So does explicit cache upgrade
$ mv .hg/cache/rbc-names-v2 .hg/cache/rbc-names-v1
$ mv .hg/cache/rbc-revs-v2 .hg/cache/rbc-revs-v1
$ f --size .hg/cache/rbc-*
.hg/cache/rbc-names-v1: size=110
.hg/cache/rbc-revs-v1: size=168
$ hg debugupdatecache
$ f --size .hg/cache/rbc-*
.hg/cache/rbc-names-v1: size=110
.hg/cache/rbc-names-v2: size=110
.hg/cache/rbc-revs-v1: size=168
.hg/cache/rbc-revs-v2: size=168
With invalid v1 data, we rewrite it too (as v2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment