cache: ensure we warm stablerange cache before the obshashrange cache
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 16 May 2017 11:21:41 +0200
changeset 2368 b73e1f879646
parent 2366 2241433a77e5
child 2369 e38e7ef361ee
cache: ensure we warm stablerange cache before the obshashrange cache I've been seeing traceback that seems to be happening because of issues in this area.
hgext3rd/evolve/obsdiscovery.py
hgext3rd/evolve/stablerange.py
--- a/hgext3rd/evolve/obsdiscovery.py	Fri May 12 21:21:31 2017 +0200
+++ b/hgext3rd/evolve/obsdiscovery.py	Tue May 16 11:21:41 2017 +0200
@@ -630,7 +630,7 @@
                 self.obsstore.rangeobshashcache.update(repo)
                 self.obsstore.rangeobshashcache.save(repo)
 
-            tr.addpostclose('warmcache-obscacherange', _warmcache)
+            tr.addpostclose('warmcache-20-obscacherange', _warmcache)
             return tr
 
     repo.__class__ = obshashrepo
--- a/hgext3rd/evolve/stablerange.py	Fri May 12 21:21:31 2017 +0200
+++ b/hgext3rd/evolve/stablerange.py	Tue May 16 11:21:41 2017 +0200
@@ -902,7 +902,7 @@
                     # new nodes !
                     repo.stablerange.warmup(repo)
 
-            tr.addpostclose('warmcache-stablerange', _warmcache)
+            tr.addpostclose('warmcache-10-stablerange', _warmcache)
             return tr
 
     repo.__class__ = stablerangerepo