diff -r e999b59d6eb1 -r d83b189aef83 mercurial/revset.py --- a/mercurial/revset.py Tue Jun 20 22:11:23 2017 +0900 +++ b/mercurial/revset.py Tue Jun 20 22:26:52 2017 +0900 @@ -600,19 +600,7 @@ if not roots: return baseset() s = dagop.revdescendants(repo, roots, followfirst) - - # Both sets need to be ascending in order to lazily return the union - # in the correct order. - base = subset & roots - desc = subset & s - result = base + desc - if subset.isascending(): - result.sort() - elif subset.isdescending(): - result.sort(reverse=True) - else: - result = subset & result - return result + return subset & s @predicate('descendants(set)', safe=True) def descendants(repo, subset, x):