Mercurial > evolve
changeset 1382:c431f827f366 stable
evolve: move 'suspended()' to smarted usage
The "new" smarted can be significantly more efficient than the old was. We
convert our revset to take advantage of that.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 18 Jun 2015 17:08:38 -0700 |
parents | 61849d45d47e |
children | cf62abb62941 |
files | hgext/evolve.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/evolve.py Thu Jun 18 17:08:11 2015 -0700 +++ b/hgext/evolve.py Thu Jun 18 17:08:38 2015 -0700 @@ -504,8 +504,9 @@ Obsolete changesets with non-obsolete descendants. """ revset.getargs(x, 0, 0, 'suspended takes no arguments') - suspended = getrevs(repo, 'suspended') - return [r for r in subset if r in suspended] + suspended = revset.baseset(getrevs(repo, 'suspended')) + suspended.sort() + return subset & suspended @eh.revset('precursors')