tests/test-revset.t
changeset 35542 beb667c9880f
parent 35501 12a46ad67a3c
child 36379 28551d4c5ee8
equal deleted inserted replaced
35537:58fda95a0202 35542:beb667c9880f
   790       (symbol '1')
   790       (symbol '1')
   791       (symbol '2')))
   791       (symbol '2')))
   792   * set:
   792   * set:
   793   <baseset []>
   793   <baseset []>
   794 
   794 
   795 infix/suffix resolution of ^ operator (issue2884):
   795 infix/suffix resolution of ^ operator (issue2884, issue5764):
   796 
   796 
   797  x^:y means (x^):y
   797  x^:y means (x^):y
   798 
   798 
   799   $ try '1^:2'
   799   $ try '1^:2'
   800   (range
   800   (range
   816   <baseset+ [0, 1, 2]>
   816   <baseset+ [0, 1, 2]>
   817   0
   817   0
   818   1
   818   1
   819   2
   819   2
   820 
   820 
       
   821   $ try '1^..2'
       
   822   (dagrange
       
   823     (parentpost
       
   824       (symbol '1'))
       
   825     (symbol '2'))
       
   826   * set:
       
   827   <baseset+ [0, 1, 2]>
       
   828   0
       
   829   1
       
   830   2
       
   831 
   821   $ try '9^:'
   832   $ try '9^:'
   822   (rangepost
   833   (rangepost
   823     (parentpost
   834     (parentpost
   824       (symbol '9')))
   835       (symbol '9')))
   825   * set:
   836   * set:
   826   <spanset+ 8:10>
   837   <spanset+ 8:10>
       
   838   8
       
   839   9
       
   840 
       
   841   $ try '9^::'
       
   842   (dagrangepost
       
   843     (parentpost
       
   844       (symbol '9')))
       
   845   * set:
       
   846   <generatorsetasc+>
       
   847   8
       
   848   9
       
   849 
       
   850   $ try '9^..'
       
   851   (dagrangepost
       
   852     (parentpost
       
   853       (symbol '9')))
       
   854   * set:
       
   855   <generatorsetasc+>
   827   8
   856   8
   828   9
   857   9
   829 
   858 
   830  x^:y should be resolved before omitting group operators
   859  x^:y should be resolved before omitting group operators
   831 
   860 
   940   (parent
   969   (parent
   941     (symbol '1')
   970     (symbol '1')
   942     (rangepre
   971     (rangepre
   943       (symbol '2')))
   972       (symbol '2')))
   944   hg: parse error: ^ expects a number 0, 1, or 2
   973   hg: parse error: ^ expects a number 0, 1, or 2
       
   974   [255]
       
   975 
       
   976 '::' itself isn't a valid expression
       
   977 
       
   978   $ try '::'
       
   979   (dagrangeall
       
   980     None)
       
   981   hg: parse error: can't use '::' in this context
   945   [255]
   982   [255]
   946 
   983 
   947 ancestor can accept 0 or more arguments
   984 ancestor can accept 0 or more arguments
   948 
   985 
   949   $ log 'ancestor()'
   986   $ log 'ancestor()'