destroyed: drop complex branchcache rebuilt logic stable
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 16 Jan 2013 00:09:26 +0100
branchstable
changeset 1198 ed05e4372751
parent 1197 10e27c438792
child 1199 b9f44c378e62
destroyed: drop complex branchcache rebuilt logic The strip code used a trick to lower the cost of branchcache update after a strip. However is less necessary since we have branchcache collaboration. Invalid branchcache are likely to be cheaply rebuilt again a near subset of the repo. Moreover, this trick would need update to be relevant in the now filtered repository world. It currently update the unfiltered branchcache that few people cares about. Make it smarter on that aspect would need complexes update of the calling logic So this mechanism is: - Arguably needed, - Currently irrelevant, - Hard to update and I'm dropping it. We now update the branchcache in all case by courtesy of the read only reader. This changeset have a few expected impact on the testsuite are different cache are updated. [ original upstream message ]
tests/test-keyword.t
--- a/tests/test-keyword.t	Wed Jan 16 00:08:08 2013 +0100
+++ b/tests/test-keyword.t	Wed Jan 16 00:09:26 2013 +0100
@@ -507,6 +507,7 @@
   $ hg -q commit -d '14 1' -m 'prepare amend'
 
   $ hg --debug commit --amend -d '15 1' -m 'amend without changes' | grep keywords
+  invalid branchheads cache (served): tip differs
   overwriting a expanding keywords
   $ hg -q id
   67d8c481a6be