##// END OF EJS Templates
branchmap: explicitly warm+write all subsets of the branchmap caches...
Kyle Lippincott -
r42940:cdf0e952 default
parent child Browse files
Show More
@@ -2220,6 +2220,16 b' class localrepository(object):'
2220 2220 self.tags()
2221 2221 self.filtered('served').tags()
2222 2222
2223 # The `full` arg is documented as updating even the lazily-loaded
2224 # caches immediately, so we're forcing a write to cause these caches
2225 # to be warmed up even if they haven't explicitly been requested
2226 # yet (if they've never been used by hg, they won't ever have been
2227 # written, even if they're a subset of another kind of cache that
2228 # *has* been used).
2229 for filt in repoview.filtertable.keys():
2230 filtered = self.filtered(filt)
2231 filtered.branchmap().write(filtered)
2232
2223 2233 def invalidatecaches(self):
2224 2234
2225 2235 if r'_tagscache' in vars(self):
@@ -546,7 +546,12 b' Test cache warming command'
546 546 .hg/cache/rbc-revs-v1
547 547 .hg/cache/rbc-names-v1
548 548 .hg/cache/hgtagsfnodes1
549 .hg/cache/branch2-visible-hidden
550 .hg/cache/branch2-visible
551 .hg/cache/branch2-served.hidden
549 552 .hg/cache/branch2-served
553 .hg/cache/branch2-immutable
554 .hg/cache/branch2-base
550 555
551 556 Test debugcolor
552 557
@@ -50,7 +50,12 b' Check same result using `experimental.ex'
50 50 $ hg -R test --config experimental.extra-filter-revs='not public()' debugupdatecache
51 51 $ ls -1 test/.hg/cache/
52 52 branch2-base%89c45d2fa07e
53 branch2-immutable%89c45d2fa07e
53 54 branch2-served
55 branch2-served%89c45d2fa07e
56 branch2-served.hidden%89c45d2fa07e
57 branch2-visible%89c45d2fa07e
58 branch2-visible-hidden%89c45d2fa07e
54 59 hgtagsfnodes1
55 60 rbc-names-v1
56 61 rbc-revs-v1
General Comments 0
You need to be logged in to leave comments. Login now