comparison mercurial/templatefilters.py @ 38299:0fe65bb7e160

templatefilters: deprecate hgdate as {date|hgdate} is the default format
author Yuya Nishihara <yuya@tcha.org>
date Sat, 24 Mar 2018 18:03:23 +0900
parents 56dd15178190
children 74b4a54002ec
comparison
equal deleted inserted replaced
38298:851fc9d42d6d 38299:0fe65bb7e160
239 return node.hex(text) 239 return node.hex(text)
240 240
241 @templatefilter('hgdate', intype=templateutil.date) 241 @templatefilter('hgdate', intype=templateutil.date)
242 def hgdate(text): 242 def hgdate(text):
243 """Date. Returns the date as a pair of numbers: "1157407993 243 """Date. Returns the date as a pair of numbers: "1157407993
244 25200" (Unix timestamp, timezone offset). 244 25200" (Unix timestamp, timezone offset). (DEPRECATED)
245 """ 245 """
246 return "%d %d" % text 246 return "%d %d" % text
247 247
248 @templatefilter('isodate', intype=templateutil.date) 248 @templatefilter('isodate', intype=templateutil.date)
249 def isodate(text): 249 def isodate(text):