comparison tests/test-manifest.t @ 41960:7d417ab1eda9

manifestcache: test the cache is warm after a commit
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 14 Mar 2019 11:46:18 +0000
parents 1fe278aa4ad5
children 6386f9a421d2
comparison
equal deleted inserted replaced
41959:e3307243d188 41960:7d417ab1eda9
156 cache contains 2 manifest entries, in order of most to least recent: 156 cache contains 2 manifest entries, in order of most to least recent:
157 id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes 157 id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes
158 id: fce2a30dedad1eef4da95ca1dc0004157aa527cf, size 87 bytes 158 id: fce2a30dedad1eef4da95ca1dc0004157aa527cf, size 87 bytes
159 total cache data size 268 bytes, on-disk 268 bytes 159 total cache data size 268 bytes, on-disk 268 bytes
160 $ hg debugmanifestfulltextcache --clear 160 $ hg debugmanifestfulltextcache --clear
161
162 Test caching behavior on actual operation
163 -----------------------------------------
164
165 Make sure we start empty
166
167 $ hg debugmanifestfulltextcache
168 cache empty
169
170 Commit should have the new node cached:
171
172 $ echo a >> b/a
173 $ hg commit -m 'foo'
174 $ hg debugmanifestfulltextcache
175 cache contains 2 manifest entries, in order of most to least recent:
176 id: 26b8653b67af8c1a0a0317c4ee8dac50a41fdb65, size 133 bytes
177 id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes
178 total cache data size 314 bytes, on-disk 314 bytes
179 $ hg log -r 'ancestors(., 1)' --debug | grep 'manifest:'
180 manifest: 1:1e01206b1d2f72bd55f2a33fa8ccad74144825b7
181 manifest: 2:26b8653b67af8c1a0a0317c4ee8dac50a41fdb65