diff -r 23c4589fc678 -r 4f703dcc626f tests/test-revset.t --- a/tests/test-revset.t Sat Aug 08 14:42:27 2015 +0800 +++ b/tests/test-revset.t Sun Aug 09 16:06:36 2015 +0900 @@ -1230,6 +1230,23 @@ 5 6 +no crash by empty group "()" while optimizing to "only()" + + $ try --optimize '::1 and ()' + (and + (dagrangepre + ('symbol', '1')) + (group + None)) + * optimized: + (and + None + (func + ('symbol', 'ancestors') + ('symbol', '1'))) + hg: parse error: missing argument + [255] + we can use patterns when searching for tags $ log 'tag("1..*")'