comparison tests/test-discovery-obshashrange.t @ 3943:beb6a77223d2

obshashrange: add a test for `hg debugupdatecache` It seem to be properly filling the caches.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 14 Aug 2018 15:24:22 +0200
parents a93e81733549
children 4ef3800c9bf8
comparison
equal deleted inserted replaced
3942:38c9a050ba03 3943:beb6a77223d2
874 1 66f7d451a68b 1 1 2 327c7dd73d29 874 1 66f7d451a68b 1 1 2 327c7dd73d29
875 4 bebd167eb94d 4 1 5 b21465ecb790 875 4 bebd167eb94d 4 1 5 b21465ecb790
876 5 c8d03c1b5e94 5 1 6 446c2dc3bce5 876 5 c8d03c1b5e94 5 1 6 446c2dc3bce5
877 6 f69452c5b1af 6 1 7 000000000000 877 6 f69452c5b1af 6 1 7 000000000000
878 878
879 Cache warming capabilities
880 --------------------------
881
882 $ hg config experimental.obshashrange
883 1
884 $ hg config experimental.obshashrange.warm-cache
885 [1]
886 $ hg debugupdatecache
887 $ ls -1 .hg/cache/evoext*
888 .hg/cache/evoext-depthcache-00
889 .hg/cache/evoext-firstmerge-00
890 .hg/cache/evoext-obscache-00
891 .hg/cache/evoext-stablesortcache-00
892 .hg/cache/evoext_obshashrange_v2.sqlite
893 .hg/cache/evoext_stablerange_v2.sqlite
894 $ rm -f .hg/cache/evoext*
895 $ ls -1 .hg/cache/ | grep evoext
896 [1]
897 $ hg debugupdatecache --debug
898 updating the branch cache
899 invalid branchheads cache (served): tip differs
900 $ f -s .hg/cache/evoext*
901 .hg/cache/evoext-depthcache-00: size=96
902 .hg/cache/evoext-firstmerge-00: size=96
903 .hg/cache/evoext-obscache-00: size=73
904 .hg/cache/evoext-stablesortcache-00: size=100
905 .hg/cache/evoext_obshashrange_v2.sqlite: size=20480
906 .hg/cache/evoext_stablerange_v2.sqlite: size=36864