changeset 2368:b73e1f879646

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.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 16 May 2017 11:21:41 +0200
parents 2241433a77e5
children e38e7ef361ee
files hgext3rd/evolve/obsdiscovery.py hgext3rd/evolve/stablerange.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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