templatefilters: deprecate hgdate as {date|hgdate} is the default format
authorYuya Nishihara <yuya@tcha.org>
Sat, 24 Mar 2018 18:03:23 +0900
changeset 38287 0fe65bb7e160
parent 38286 851fc9d42d6d
child 38288 a9de1d28681c
templatefilters: deprecate hgdate as {date|hgdate} is the default format
mercurial/templatefilters.py
--- a/mercurial/templatefilters.py	Sat Mar 24 17:59:19 2018 +0900
+++ b/mercurial/templatefilters.py	Sat Mar 24 18:03:23 2018 +0900
@@ -241,7 +241,7 @@
 @templatefilter('hgdate', intype=templateutil.date)
 def hgdate(text):
     """Date. Returns the date as a pair of numbers: "1157407993
-    25200" (Unix timestamp, timezone offset).
+    25200" (Unix timestamp, timezone offset). (DEPRECATED)
     """
     return "%d %d" % text