branchcache: add note about cache invalidation to test-keyword.t stable
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 08 Jan 2013 12:41:51 +0100
branchstable
changeset 1188 769eb1b179b5
parent 1187 90ce0988d1d6
child 1189 1c0d52f23308
branchcache: add note about cache invalidation to test-keyword.t [Should've been included in aff706b3a21c.] --Kevin Bullock <kbullock@ringworld.org> [ original upstream message ]
tests/test-keyword.t
--- a/tests/test-keyword.t	Wed Jan 02 01:57:46 2013 +0100
+++ b/tests/test-keyword.t	Tue Jan 08 12:41:51 2013 +0100
@@ -746,6 +746,18 @@
 
 Commit with multi-line message and custom expansion
 
+|Note:
+|
+| After the last rollback, the "unserved" branchheads cache became invalid, but
+| all changeset in the repo were public. So filtering wise:
+|   "mutable" == "unserved" == ΓΈ.
+|
+| As the "unserved" cache is invalid, we fall back to "mutable" cache. But not
+| update is needed between "mutable" and "unserved" cache and the "unserved"
+| cache is not updated on disk. The on disk version therefor stay invalid for
+| some time. This explains why the "unserved" branchheads cache is detect
+| invalid here.
+
   $ hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>'
   invalid branchheads cache: tip differs
   invalid branchheads cache (unserved): tip differs