[PATCH 5 of 7] templatefilters: deprecate hgdate as {date|hgdate} is the default format

Yuya Nishihara yuya at tcha.org
Tue Jun 12 10:49:07 EDT 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1521882203 -32400
#      Sat Mar 24 18:03:23 2018 +0900
# Node ID bc18058428fc50a9da867e9fd8a3c9f15f133851
# Parent  cb223b044175c8444053bd55aa6d78992243c30a
templatefilters: deprecate hgdate as {date|hgdate} is the default format

diff --git a/mercurial/templatefilters.py b/mercurial/templatefilters.py
--- a/mercurial/templatefilters.py
+++ b/mercurial/templatefilters.py
@@ -241,7 +241,7 @@ def hexfilter(text):
 @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
 


More information about the Mercurial-devel mailing list