# HG changeset patch # User Pierre-Yves David # Date 1490211423 -3600 # Node ID b8a8b7ee26b7565b0bb9167c00b0c6efe709805e # Parent c583efbaec78ac43160d7e39eeb866582e155619 revsfromrange: skip setting the cache for length-1 top entry The content of the range is trivial to compute. diff -r c583efbaec78 -r b8a8b7ee26b7 hgext3rd/evolve/stablerange.py --- 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