Mercurial > hg-stable
changeset 20717:da3124178fbb
tests: added tests to test sort revset
This tests are intended to test sort in many different cases where it could
fail when using the new structures
author | Lucas Moscovicz <lmoscovicz@fb.com> |
---|---|
date | Thu, 13 Mar 2014 17:20:03 -0700 |
parents | fa1ac5faa7c4 |
children | d7b7ec0459c6 |
files | tests/test-revset.t |
diffstat | 1 files changed, 55 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-revset.t Fri Mar 14 09:07:59 2014 -0700 +++ b/tests/test-revset.t Thu Mar 13 17:20:03 2014 -0700 @@ -460,6 +460,61 @@ $ log 'tag(tip)' 9 +test sort revset +-------------------------------------------- + +test when adding two unordered revsets + + $ log 'sort(keyword(issue) or modifies(b))' + 4 + 6 + +test when sorting a reversed collection in the same way it is + + $ log 'sort(reverse(all()), -rev)' + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 + 0 + + +test when sorting a reversed collection + + $ log 'sort(reverse(all()), rev)' + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + + +test sorting two sorted collections in different orders + + $ log 'sort(outgoing() or reverse(removes(a)), rev)' + 2 + 6 + 8 + 9 + +test sorting two sorted collections in different orders backwards + + $ log 'sort(outgoing() or reverse(removes(a)), -rev)' + 9 + 8 + 6 + 2 + check that conversion to _missingancestors works $ try --optimize '::3 - ::1' (minus