tests/test-command-template.t
changeset 18884 0615b22da148
parent 18715 c4ff927b6f68
child 18893 74ea61318ea8
equal deleted inserted replaced
18883:667441789d25 18884:0615b22da148
  1358   $ hg commit -m future -d "`cat a`"
  1358   $ hg commit -m future -d "`cat a`"
  1359 
  1359 
  1360   $ hg log -l1 --template '{date|age}\n'
  1360   $ hg log -l1 --template '{date|age}\n'
  1361   7 years from now
  1361   7 years from now
  1362 
  1362 
       
  1363 Filter with int function argument:
       
  1364 
       
  1365   $ hg log --template '{fill(author, 20)}\n' -r 0
       
  1366   User Name
       
  1367   <user@hostname>
       
  1368 
  1363 Error on syntax:
  1369 Error on syntax:
  1364 
  1370 
  1365   $ echo 'x = "f' >> t
  1371   $ echo 'x = "f' >> t
  1366   $ hg log
  1372   $ hg log
  1367   abort: t:3: unmatched quotes
  1373   abort: t:3: unmatched quotes