Mercurial > evolve
changeset 2208:781ab704dc59
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.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Thu, 23 Mar 2017 12:53:39 +0100 |
parents | f82a398162f5 |
children | d25d39b88c7f |
files | hgext3rd/evolve/stablerange.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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