Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.py @ 22831:acf2ed431ce6
_descendants: replace `ascending()` with `sort()`
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 07 Oct 2014 01:41:02 -0700 |
parents | 1d1da8abe130 |
children | 2f1d2a42f040 |
comparison
equal
deleted
inserted
replaced
22830:1d1da8abe130 | 22831:acf2ed431ce6 |
---|---|
662 return baseset() | 662 return baseset() |
663 s = _revdescendants(repo, args, followfirst) | 663 s = _revdescendants(repo, args, followfirst) |
664 | 664 |
665 # Both sets need to be ascending in order to lazily return the union | 665 # Both sets need to be ascending in order to lazily return the union |
666 # in the correct order. | 666 # in the correct order. |
667 args.ascending() | 667 args.sort() |
668 result = (filteredset(s, subset.__contains__, ascending=True) + | 668 result = (filteredset(s, subset.__contains__, ascending=True) + |
669 filteredset(args, subset.__contains__, ascending=True)) | 669 filteredset(args, subset.__contains__, ascending=True)) |
670 | 670 |
671 return result | 671 return result |
672 | 672 |