changeset 2191:dd5b948a98b4

revsfromrange: set the cache for the top range in merge slicing We no longer rely on the object magic here.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 22 Mar 2017 20:55:23 +0100
parents f4cc3cf27a3a
children 195c0d7a6b7c
files hgext3rd/evolve/stablerange.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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])