revsfromrange: skip setting the cache for length-1 top entry
The content of the range is trivial to compute.
--- 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