comparison tests/test-manifest.t @ 41946:5b77847bdf09

manifestcache: make sure the entry are ordered by access time This is an LRU cache, let us make sure of that.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 14 Mar 2019 10:58:53 +0000
parents 7436653d8542
children b74ef67573e5
comparison
equal deleted inserted replaced
41945:7436653d8542 41946:5b77847bdf09
131 $ hg debugmanifestfulltextcache 131 $ hg debugmanifestfulltextcache
132 cache contains 2 manifest entries, in order of most to least recent: 132 cache contains 2 manifest entries, in order of most to least recent:
133 id: fce2a30dedad1eef4da95ca1dc0004157aa527cf, size 87 bytes 133 id: fce2a30dedad1eef4da95ca1dc0004157aa527cf, size 87 bytes
134 id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes 134 id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes
135 total cache data size 268 bytes, on-disk 268 bytes 135 total cache data size 268 bytes, on-disk 268 bytes
136
137 Accessing the initial entry again, refresh their order
138
139 $ hg debugmanifestfulltextcache --add 1e01206b1d2f72bd55f2a33fa8ccad74144825b7
140 $ hg debugmanifestfulltextcache
141 cache contains 2 manifest entries, in order of most to least recent:
142 id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes
143 id: fce2a30dedad1eef4da95ca1dc0004157aa527cf, size 87 bytes
144 total cache data size 268 bytes, on-disk 268 bytes