tests/test-revset.t
branchstable
changeset 16772 30e46d7138de
parent 16771 2f3317d53d51
child 16778 2ac08d8b21aa
--- a/tests/test-revset.t	Sat May 19 17:18:29 2012 +0200
+++ b/tests/test-revset.t	Sat May 19 17:19:55 2012 +0200
@@ -520,6 +520,27 @@
   hg: parse error: infinite expansion of revset alias "recurse1" detected
   [255]
 
+  $ echo 'level1($1, $2) = $1 or $2' >> .hg/hgrc
+  $ echo 'level2($1, $2) = level1($2, $1)' >> .hg/hgrc
+  $ try "level2(level1(1, 2), 3)"
+  (func
+    ('symbol', 'level2')
+    (list
+      (func
+        ('symbol', 'level1')
+        (list
+          ('symbol', '1')
+          ('symbol', '2')))
+      ('symbol', '3')))
+  (or
+    ('symbol', '3')
+    (or
+      ('symbol', '1')
+      ('symbol', '2')))
+  3
+  1
+  2
+
 test nesting and variable passing
 
   $ echo 'nested($1) = nested2($1)' >> .hg/hgrc