changeset 29321:de4a80a2b45c

test-revset: fix test vector for ordering issue of matching() 592e0beee8b0 fixed matching() to preserve the order of the input set, but the test was incorrect. Given "A and B", "A" should be the input set to "B". But thanks to our optimizer, the test expression was rewritten as "(2 or 3 or 1) and matching(1 or 2 or 3)", therefore it was working well. Since I'm going to fix the overall ordering issue, the test needs to be adjusted to do the right thing.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 03 Jun 2016 21:49:26 +0900
parents 016a90152e9c
children b501579147f1
files tests/test-revset.t
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-revset.t	Fri May 20 01:42:04 2016 +0200
+++ b/tests/test-revset.t	Fri Jun 03 21:49:26 2016 +0900
@@ -1566,7 +1566,10 @@
   0
   $ log '4::8 - 8'
   4
-  $ log 'matching(1 or 2 or 3) and (2 or 3 or 1)'
+
+matching() should preserve the order of the input set:
+
+  $ log '(2 or 3 or 1) and matching(1 or 2 or 3)'
   2
   3
   1