tests: add tests for matching keyword
authorAngel Ezquerra <angel.ezquerra@gmail.com>
Sun, 15 Apr 2012 00:27:31 +0200
changeset 16447 60c379da12aa
parent 16446 984e0412e82b
child 16448 e6b45e9a75dc
tests: add tests for matching keyword This adds a couple of tests for the revset "matching" keyword: 1. Test that the 2nd parameter is optional 2. Test that all the 1st argument can be a revset and that all the supported fields of the 2nd argument work.
tests/test-revset.t
--- a/tests/test-revset.t	Sat Apr 14 01:41:03 2012 +0200
+++ b/tests/test-revset.t	Sun Apr 15 00:27:31 2012 +0200
@@ -292,6 +292,11 @@
   6
   $ log 'limit(head(), 1)'
   0
+  $ log 'matching(6)'
+  6
+  $ log 'matching(6:7, "phase parents user date branch summary files description substate")'
+  6
+  7
   $ log 'max(contains(a))'
   5
   $ log 'min(contains(a))'