revsfromrange: set the cache for the top range in merge slicing
We no longer rely on the object magic here.
--- a/hgext3rd/evolve/stablerange.py Wed Mar 22 20:44:29 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py Wed Mar 22 20:55:23 2017 +0100
@@ -352,7 +352,8 @@
allrevs = self.revsfromrange(repo, rangeid)
toprevs = allrevs[localindex:]
bottomrevs = allrevs[:localindex]
- top = stablerange(repo, rangeid[0], globalindex, toprevs)
+ top = stablerange(repo, rangeid[0], globalindex)
+ self._revsinrangecache[top] = toprevs # update cache
#
rangedepth = repo.stablerange.depthrev(repo, rangeid[0])
toprootdepth = repo.stablerange.depthrev(repo, toprevs[0])