changeset 2206:84537469a094

slicesrangeat: stop double setting the revsinranges cache The cache should have already been filled by the logic warming the cache for the parent.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 23 Mar 2017 10:49:03 +0100
parents bd5e2496e5cd
children f82a398162f5
files hgext3rd/evolve/stablerange.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/stablerange.py	Thu Mar 23 10:44:12 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py	Thu Mar 23 10:49:03 2017 +0100
@@ -362,10 +362,9 @@
         topsize = rangedepth - globalindex
 
         parentrange = (p1, rangeid[1])
-        # if we have an entry for the current range, lets update the cache
         if rangeid in self._revsinrangecache:
-            parentrevs = self._revsinrangecache[rangeid][:-1]
-            self._revsinrangecache[parentrange] = parentrevs
+            # revs cache should have been filled by _unpreparedparentrange
+            assert parentrange in self._revsinrangecache
 
         if topsize == 1:
             top = (rangeid[0], globalindex)