revsfromrange: set the cache for the single bottom range in merge slicing
We no longer rely on the object magic here.
--- a/hgext3rd/evolve/stablerange.py Wed Mar 22 20:55:23 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py Wed Mar 22 20:55:43 2017 +0100
@@ -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