# HG changeset patch # User Pierre-Yves David # Date 1490212577 -3600 # Node ID 47bc8aa0730d8be19385f615f5c7ddcfc994e4f3 # Parent 195c0d7a6b7c5d4401d272e98be00104742030a1 revsfromrange: set the cache for the multiple bottom ranges in merge slicing We no longer rely on the object magic here. diff -r 195c0d7a6b7c -r 47bc8aa0730d hgext3rd/evolve/stablerange.py --- a/hgext3rd/evolve/stablerange.py Wed Mar 22 20:55:43 2017 +0100 +++ b/hgext3rd/evolve/stablerange.py Wed Mar 22 20:56:17 2017 +0100 @@ -381,7 +381,9 @@ subset = cl.ancestors([h], inclusive=True) hrevs = [r for r in bottomrevs if r in subset] start = repo.stablerange.depthrev(repo, h) - len(hrevs) - entry = stablerange(repo, h, start, [r for r in bottomrevs if r in subset]) + entry = stablerange(repo, h, start) + entryrevs = [r for r in bottomrevs if r in subset] + self._revsinrangecache[entry] = entryrevs # update cache result.append(entry) result.append(top) return result