--- a/tests/test-revset.t Fri Jan 05 21:48:29 2018 -0500
+++ b/tests/test-revset.t Sat Dec 30 17:55:23 2017 +0900
@@ -792,7 +792,7 @@
* set:
<baseset []>
-infix/suffix resolution of ^ operator (issue2884):
+infix/suffix resolution of ^ operator (issue2884, issue5764):
x^:y means (x^):y
@@ -818,6 +818,17 @@
1
2
+ $ try '1^..2'
+ (dagrange
+ (parentpost
+ (symbol '1'))
+ (symbol '2'))
+ * set:
+ <baseset+ [0, 1, 2]>
+ 0
+ 1
+ 2
+
$ try '9^:'
(rangepost
(parentpost
@@ -827,6 +838,24 @@
8
9
+ $ try '9^::'
+ (dagrangepost
+ (parentpost
+ (symbol '9')))
+ * set:
+ <generatorsetasc+>
+ 8
+ 9
+
+ $ try '9^..'
+ (dagrangepost
+ (parentpost
+ (symbol '9')))
+ * set:
+ <generatorsetasc+>
+ 8
+ 9
+
x^:y should be resolved before omitting group operators
$ try '1^(:2)'
@@ -944,6 +973,14 @@
hg: parse error: ^ expects a number 0, 1, or 2
[255]
+'::' itself isn't a valid expression
+
+ $ try '::'
+ (dagrangeall
+ None)
+ hg: parse error: can't use '::' in this context
+ [255]
+
ancestor can accept 0 or more arguments
$ log 'ancestor()'