changeset 3964:45811d3507a7 stable

stablerange: save stablesort cache alongside the stablerange one This one does not introduce inconsistency but helps performance. G: changed hgext3rd/evolve/stablerangecache.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 17 Aug 2018 12:56:13 +0200
parents d2e9a03fb3f7
children d4ae0e3ec743
files hgext3rd/evolve/stablerangecache.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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