##// END OF EJS Templates
manifestcache: actually honor --clear...
marmoute -
r42113:b74ef675 default
parent child Browse files
Show More
@@ -1478,7 +1478,8 b' def debugmanifestfulltextcache(ui, repo,'
1478 if opts.get(r'clear'):
1478 if opts.get(r'clear'):
1479 with repo.lock():
1479 with repo.lock():
1480 cache = getcache()
1480 cache = getcache()
1481 cache.clear()
1481 cache.clear(clear_persisted_data=True)
1482 return
1482
1483
1483 if add:
1484 if add:
1484 with repo.lock():
1485 with repo.lock():
@@ -142,3 +142,9 b' Accessing the initial entry again, refre'
142 id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes
142 id: 1e01206b1d2f72bd55f2a33fa8ccad74144825b7, size 133 bytes
143 id: fce2a30dedad1eef4da95ca1dc0004157aa527cf, size 87 bytes
143 id: fce2a30dedad1eef4da95ca1dc0004157aa527cf, size 87 bytes
144 total cache data size 268 bytes, on-disk 268 bytes
144 total cache data size 268 bytes, on-disk 268 bytes
145
146 Check cache clearing
147
148 $ hg debugmanifestfulltextcache --clear
149 $ hg debugmanifestfulltextcache
150 cache empty
General Comments 0
You need to be logged in to leave comments. Login now