tests/test-revset.t
changeset 29441 9e8d258708bb
parent 29408 785cadec2091
child 29766 5004ef47f437
child 29768 8e4841944e68
--- a/tests/test-revset.t	Tue Jun 28 22:39:06 2016 +0900
+++ b/tests/test-revset.t	Mon Jun 27 20:44:14 2016 +0900
@@ -434,6 +434,12 @@
   4
   $ hg book -d date
 
+function name should be a symbol
+
+  $ log '"date"(2005)'
+  hg: parse error: not a symbol
+  [255]
+
 keyword arguments
 
   $ log 'extra(branch, value=a)'
@@ -2033,6 +2039,16 @@
   hg: parse error: missing argument
   [255]
 
+invalid function call should not be optimized to only()
+
+  $ log '"ancestors"(6) and not ancestors(4)'
+  hg: parse error: not a symbol
+  [255]
+
+  $ log 'ancestors(6) and not "ancestors"(4)'
+  hg: parse error: not a symbol
+  [255]
+
 we can use patterns when searching for tags
 
   $ log 'tag("1..*")'