# HG changeset patch # User Pierre-Yves David # Date 1490262543 -3600 # Node ID 84537469a094518246c74717feb8051201816a74 # Parent bd5e2496e5cd4ddf166e65659872b52692ab553a slicesrangeat: stop double setting the revsinranges cache The cache should have already been filled by the logic warming the cache for the parent. diff -r bd5e2496e5cd -r 84537469a094 hgext3rd/evolve/stablerange.py --- 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)