Mercurial > public > mercurial-scm > hg
diff tests/test-revset.t @ 25105:2f34746c27df
revset: remove unused 'only' from methods table
The infix 'only' operator is mapped to 'only()' function by optimize(), so
it won't be looked up as a method. The test shows it.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 15 May 2015 22:38:24 +0900 |
parents | bb2f543b48b5 |
children | 40a2cf1c765b |
line wrap: on
line diff
--- a/tests/test-revset.t Tue Apr 14 16:23:54 2015 -0400 +++ b/tests/test-revset.t Fri May 15 22:38:24 2015 +0900 @@ -615,6 +615,24 @@ <baseset+ [8, 9]> 8 9 + $ try --optimize '(9)%(5)' + (only + (group + ('symbol', '9')) + (group + ('symbol', '5'))) + * optimized: + (func + ('symbol', 'only') + (list + ('symbol', '9') + ('symbol', '5'))) + * set: + <baseset+ [8, 9, 2, 4]> + 2 + 4 + 8 + 9 Test the order of operations