[PATCH 4 of 4 V2] tests, revset: add tests for matching keyword

Angel Ezquerra angel.ezquerra at gmail.com
Sat Apr 14 17:33:58 CDT 2012


# HG changeset patch
# User Angel Ezquerra <angel.ezquerra at gmail.com>
# Date 1334442451 -7200
# Node ID d44dd7c0f5cf0a73d8142ddbd07f676bbda92e3d
# Parent  eb13533a7849604864f42fb7eae3d8f11f0e7ea7
tests, revset: 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.

diff --git a/tests/test-revset.t b/tests/test-revset.t
--- a/tests/test-revset.t
+++ b/tests/test-revset.t
@@ -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))'


More information about the Mercurial-devel mailing list