tests/test-revset.t
changeset 30332 318a24b52eeb
parent 30179 cdef35b38026
child 30699 5bda147c3139
equal deleted inserted replaced
30331:b19291e5d506 30332:318a24b52eeb
  1077   6
  1077   6
  1078   7
  1078   7
  1079   8
  1079   8
  1080   9
  1080   9
  1081 
  1081 
  1082 Test opreand of '%' is optimized recursively (issue4670)
  1082 Test operand of '%' is optimized recursively (issue4670)
  1083 
  1083 
  1084   $ try --optimize '8:9-8%'
  1084   $ try --optimize '8:9-8%'
  1085   (onlypost
  1085   (onlypost
  1086     (minus
  1086     (minus
  1087       (range
  1087       (range
  3083       ('string', '$1')))
  3083       ('string', '$1')))
  3084   abort: unknown revision '$1'!
  3084   abort: unknown revision '$1'!
  3085   [255]
  3085   [255]
  3086 
  3086 
  3087 test scope of alias expansion: 'universe' is expanded prior to 'shadowall(0)',
  3087 test scope of alias expansion: 'universe' is expanded prior to 'shadowall(0)',
  3088 but 'all()' should never be substituded to '0()'.
  3088 but 'all()' should never be substituted to '0()'.
  3089 
  3089 
  3090   $ echo 'universe = all()' >> .hg/hgrc
  3090   $ echo 'universe = all()' >> .hg/hgrc
  3091   $ echo 'shadowall(all) = all and universe' >> .hg/hgrc
  3091   $ echo 'shadowall(all) = all and universe' >> .hg/hgrc
  3092   $ try 'shadowall(0)'
  3092   $ try 'shadowall(0)'
  3093   (func
  3093   (func