diff tests/test-command-template.t @ 38286:851fc9d42d6d

templater: make date wrapper support dot/map operations No idea if it will be useful, but it just works.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 24 Mar 2018 17:59:19 +0900
parents 8d6109b49b31
children f9c426385853
line wrap: on
line diff
--- a/tests/test-command-template.t	Sat Mar 24 17:54:02 2018 +0900
+++ b/tests/test-command-template.t	Sat Mar 24 17:59:19 2018 +0900
@@ -3398,6 +3398,8 @@
   ce3cec86e6c26bd9bdfc590a6b92abc9680f1796
   $ hg log -R latesttag -r0 -T '{extras.branch}\n'
   default
+  $ hg log -R latesttag -r0 -T '{date.unixtime} {localdate(date, "+0200").tzoffset}\n'
+  0 -7200
 
   $ hg log -R latesttag -l1 -T '{author.invalid}\n'
   hg: parse error: 'test' is not a dictionary