# HG changeset patch # User Pierre-Yves David # Date 1490212543 -3600 # Node ID 195c0d7a6b7c5d4401d272e98be00104742030a1 # Parent dd5b948a98b4c8cba8ac8c226f7776baa74fcda3 revsfromrange: set the cache for the single bottom range in merge slicing We no longer rely on the object magic here. diff --git a/hgext3rd/evolve/stablerange.py b/hgext3rd/evolve/stablerange.py --- a/hgext3rd/evolve/stablerange.py +++ b/hgext3rd/evolve/stablerange.py @@ -371,7 +371,9 @@ newhead = bottomrevs[-1] bottomdepth = repo.stablerange.depthrev(repo, newhead) newstart = bottomdepth - len(bottomrevs) - result.append(stablerange(repo, newhead, newstart, bottomrevs)) + bottom = stablerange(repo, newhead, newstart) + self._revsinrangecache[bottom] = bottomrevs # update cache + result.append(bottom) else: # assert 1 < len(bheads), (toprootdepth, len(top), len(rangeid)) cl = repo.changelog