stablerange: save stablesort cache alongside the stablerange one stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 17 Aug 2018 12:56:13 +0200
branchstable
changeset 3964 45811d3507a7
parent 3963 d2e9a03fb3f7
child 3965 d4ae0e3ec743
stablerange: save stablesort cache alongside the stablerange one This one does not introduce inconsistency but helps performance. G: changed hgext3rd/evolve/stablerangecache.py
hgext3rd/evolve/stablerangecache.py
--- a/hgext3rd/evolve/stablerangecache.py	Fri Aug 17 12:07:55 2018 +0200
+++ b/hgext3rd/evolve/stablerangecache.py	Fri Aug 17 12:56:13 2018 +0200
@@ -225,6 +225,8 @@
     def _save(self, repo):
         repo = repo.unfiltered()
         repo.depthcache.save(repo)
+        if 'stablesort' in vars(repo):
+            repo.stablesort.save(repo)
         if not self._unsavedsubranges:
             return # no new data