# HG changeset patch # User Pierre-Yves David # Date 1412671013 25200 # Node ID 1d1da8abe130d39f55452b9a0638d599eb2d964d # Parent 36e09c25f8709b0e94ae8c40fd2c7f39811285c5 _descendants: directly use smartset As `addset` objects are proper smartset objects, we do not need to make any transformation of the result. diff -r 36e09c25f870 -r 1d1da8abe130 mercurial/revset.py --- a/mercurial/revset.py Fri Oct 03 03:29:55 2014 -0500 +++ b/mercurial/revset.py Tue Oct 07 01:36:53 2014 -0700 @@ -668,9 +668,7 @@ result = (filteredset(s, subset.__contains__, ascending=True) + filteredset(args, subset.__contains__, ascending=True)) - # Wrap result in a filteredset since it's an addset, which doesn't - # implement all the necessary functions to be consumed by callers. - return filteredset(result, lambda r: True, ascending=True) + return result def descendants(repo, subset, x): """``descendants(set)``