--- a/tests/test-revset.t Tue May 05 12:33:26 2015 -0500
+++ b/tests/test-revset.t Sun May 03 12:28:15 2015 -0400
@@ -281,7 +281,7 @@
hg: parse error: date requires a string
[255]
$ log 'date'
- hg: parse error: can't use date here
+ abort: unknown revision 'date'!
[255]
$ log 'date('
hg: parse error at 5: not a prefix: end
@@ -289,11 +289,40 @@
$ log 'date(tip)'
abort: invalid date: 'tip'
[255]
- $ log '"date"'
+ $ log '0:date'
+ abort: unknown revision 'date'!
+ [255]
+ $ log '::"date"'
abort: unknown revision 'date'!
[255]
+ $ hg book date -r 4
+ $ log '0:date'
+ 0
+ 1
+ 2
+ 3
+ 4
+ $ log '::date'
+ 0
+ 1
+ 2
+ 4
+ $ log '::"date"'
+ 0
+ 1
+ 2
+ 4
$ log 'date(2005) and 1::'
4
+ $ hg book -d date
+
+Test that symbols only get parsed as functions if there's an opening
+parenthesis.
+
+ $ hg book only -r 9
+ $ log 'only(only)' # Outer "only" is a function, inner "only" is the bookmark
+ 8
+ 9
ancestor can accept 0 or more arguments