tests/test-command-template.t
changeset 17345 4f8054d3171b
parent 17334 39c01f8e7b39
child 17357 bd605568c5a0
child 17383 099c778ceb33
equal deleted inserted replaced
17344:539d948d8d4b 17345:4f8054d3171b
  1243   >>> fp.write(str(datetime.now().year + 8) + '-01-01 00:00')
  1243   >>> fp.write(str(datetime.now().year + 8) + '-01-01 00:00')
  1244   >>> fp.close()
  1244   >>> fp.close()
  1245   $ hg add a
  1245   $ hg add a
  1246   $ hg commit -m future -d "`cat a`"
  1246   $ hg commit -m future -d "`cat a`"
  1247 
  1247 
  1248   $ hg log -l1 --template '{date|age}\n' 
  1248   $ hg log -l1 --template '{date|age}\n'
  1249   7 years from now
  1249   7 years from now
  1250 
  1250 
  1251 Error on syntax:
  1251 Error on syntax:
  1252 
  1252 
  1253   $ echo 'x = "f' >> t
  1253   $ echo 'x = "f' >> t