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

login
register
mail settings
Submitter Yuya Nishihara
Date June 12, 2018, 2:49 p.m.
Message ID <bc18058428fc50a9da86.1528814947@mimosa>
Download mbox | patch
Permalink /patch/32081/
State Accepted
Headers show

Comments

Yuya Nishihara - June 12, 2018, 2:49 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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

Patch

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