tests/test-command-template.t
branchstable
changeset 26502 4ca98a389152
parent 25862 7316a2847c63
child 26504 875e5d89dc86
equal deleted inserted replaced
26419:93bfa9fc96e3 26502:4ca98a389152
  3366 
  3366 
  3367   $ hg log -Gv -R a --template "{word('a', desc)}"
  3367   $ hg log -Gv -R a --template "{word('a', desc)}"
  3368   hg: parse error: word expects an integer index
  3368   hg: parse error: word expects an integer index
  3369   [255]
  3369   [255]
  3370 
  3370 
       
  3371 Test word for out of range
       
  3372 
       
  3373   $ hg log -R a --template "{word(10000, desc)}"
       
  3374   $ hg log -R a --template "{word(-10000, desc)}"
       
  3375 
  3371 Test indent and not adding to empty lines
  3376 Test indent and not adding to empty lines
  3372 
  3377 
  3373   $ hg log -T "-----\n{indent(desc, '>> ', ' > ')}\n" -r 0:1 -R a
  3378   $ hg log -T "-----\n{indent(desc, '>> ', ' > ')}\n" -r 0:1 -R a
  3374   -----
  3379   -----
  3375    > line 1
  3380    > line 1