Mercurial > hg
comparison tests/test-manifest.t @ 41942:fbee66c90cef
manifestcache: only lock the repository if the debug command touch the cache
Not doing so had two consequences:
1) the command cannot be run on read only repositories,
2) when using --add on an empty cache, the command crash prematurely trying to
read the cache file on disk.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 14 Mar 2019 10:43:01 +0000 |
parents | 70d2d47314e5 |
children | 1e75311d78f7 |
comparison
equal
deleted
inserted
replaced
41941:08fad2ca4eb6 | 41942:fbee66c90cef |
---|---|
105 | 105 |
106 Showing the content of the caches after the above operations | 106 Showing the content of the caches after the above operations |
107 | 107 |
108 $ hg debugmanifestfulltextcache | 108 $ hg debugmanifestfulltextcache |
109 cache empty | 109 cache empty |
110 | |
111 Adding a new persistent entry in the cache | |
112 | |
113 $ hg debugmanifestfulltextcache --add 1e01206b1d2f72bd55f2a33fa8ccad74144825b7 | |
114 cache contains 1 manifest entries, in order of most to least recent: | |
115 id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes | |
116 total cache data size 157 bytes, on-disk 157 bytes | |
117 | |
118 $ hg debugmanifestfulltextcache | |
119 cache contains 1 manifest entries, in order of most to least recent: | |
120 id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes | |
121 total cache data size 157 bytes, on-disk 157 bytes |