obshashrange: force obshashrange invalidation by bumping schema stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 28 Aug 2018 20:00:46 +0200
branchstable
changeset 4034 215235c734e7
parent 4028 e8ce05aa9138
child 4035 f1cde4c97806
obshashrange: force obshashrange invalidation by bumping schema The fix in 8.1.1 deserve recomputing the obs hash range cache. So we bump its schema version to declare the older cache invalid. The other caches, including the expensive stablerange are unaffected.
CHANGELOG
hgext3rd/evolve/obsdiscovery.py
--- a/CHANGELOG	Tue Aug 28 10:24:18 2018 +0200
+++ b/CHANGELOG	Tue Aug 28 20:00:46 2018 +0200
@@ -5,6 +5,8 @@
 -------------------
 
   * obshashrange: improved robusness of the cache under heavy load
+  * obshashrange: force recomputation of the final obshash related cache
+                  (to make sure people benefit from the 8.1.1 fixes)
 
 8.1.1 -- 2018-08-21
 -------------------
--- a/hgext3rd/evolve/obsdiscovery.py	Tue Aug 28 10:24:18 2018 +0200
+++ b/hgext3rd/evolve/obsdiscovery.py	Tue Aug 28 20:00:46 2018 +0200
@@ -394,7 +394,7 @@
 
 class _obshashcache(obscache.dualsourcecache):
 
-    _schemaversion = 2
+    _schemaversion = 3
 
     _cachename = 'evo-ext-obshashrange' # used for error message
     _filename = 'cache/evoext_obshashrange_v2.sqlite'