tests/test-revset2.t
changeset 38625 52f19a840543
parent 38275 f1d55ae2c5c8
child 38810 4fe8d1f077b8
--- a/tests/test-revset2.t	Mon Jun 18 19:41:54 2018 -0700
+++ b/tests/test-revset2.t	Tue Jun 26 15:26:21 2018 -0700
@@ -1834,3 +1834,21 @@
         (keyvalue
           (symbol 'depth')
           (symbol '1')))))
+
+test commonancestors and its optimization
+
+  $ hg debugrevspec --verify -p analyzed -p optimized 'heads(commonancestors(head()))'
+  * analyzed:
+  (func
+    (symbol 'heads')
+    (func
+      (symbol 'commonancestors')
+      (func
+        (symbol 'head')
+        None)))
+  * optimized:
+  (func
+    (symbol '_commonancestorheads')
+    (func
+      (symbol 'head')
+      None))