Show More
@@ -158,3 +158,24 b' Check adding multiple entry in one go:' | |||||
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 |
General Comments 0
You need to be logged in to leave comments.
Login now