changeset 2188:b8a8b7ee26b7

revsfromrange: skip setting the cache for length-1 top entry The content of the range is trivial to compute.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 22 Mar 2017 20:37:03 +0100
parents c583efbaec78
children 40b0e1dbed90
files hgext3rd/evolve/stablerange.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/stablerange.py	Wed Mar 22 20:36:19 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py	Wed Mar 22 20:37:03 2017 +0100
@@ -325,7 +325,7 @@
             self._revsinrangecache[parentrange] = parentrevs
 
         if topsize == 1:
-            top = stablerange(repo, rangeid[0], globalindex, [rangeid[0]])
+            top = stablerange(repo, rangeid[0], globalindex)
             return [parentrange, top]
         else:
             # XXX recursive call, python have issue with them