tests/test-command-template.t
changeset 32039 2ab7578e685b
parent 31928 277b3e2d711b
child 32704 af854b1b36f8
equal deleted inserted replaced
32038:3920b5970f95 32039:2ab7578e685b
  3892   |  foo
  3892   |  foo
  3893   |  foo other 3
  3893   |  foo other 3
  3894   o  foo line 1
  3894   o  foo line 1
  3895      foo line 2
  3895      foo line 2
  3896 
  3896 
       
  3897   $ hg log -R a -r0 -T '{desc|splitlines}\n'
       
  3898   line 1 line 2
       
  3899   $ hg log -R a -r0 -T '{join(desc|splitlines, "|")}\n'
       
  3900   line 1|line 2
       
  3901 
  3897 Test startswith
  3902 Test startswith
  3898   $ hg log -Gv -R a --template "{startswith(desc)}"
  3903   $ hg log -Gv -R a --template "{startswith(desc)}"
  3899   hg: parse error: startswith expects two arguments
  3904   hg: parse error: startswith expects two arguments
  3900   [255]
  3905   [255]
  3901 
  3906