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.
--- 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')