merge-slicing: avoid doing the same work twice
We have already computed the list of revision in that bottom slice as 'hrevs' so
we do not need to compute it a second time.
--- a/hgext3rd/evolve/stablerange.py Thu Mar 23 14:16:43 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py Thu Mar 23 12:53:39 2017 +0100
@@ -422,8 +422,7 @@
hrevs = [r for r in bottomrevs if r in subset]
start = self.depthrev(repo, h) - len(hrevs)
entry = (h, start)
- entryrevs = [r for r in bottomrevs if r in subset]
- self._revsinrangecache[entry] = entryrevs # update cache
+ self._revsinrangecache[entry] = hrevs # update cache
result.append(entry)
result.append(top)
return result