Mercurial > hg-stable
changeset 13586:57150dc5a9c7
templatefilters: sort filters table
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 12 Mar 2011 12:46:31 +0100 |
parents | 2e80d495592a |
children | 9fb6850d5d97 |
files | mercurial/templatefilters.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templatefilters.py Sat Mar 12 12:46:31 2011 +0100 +++ b/mercurial/templatefilters.py Sat Mar 12 12:46:31 2011 +0100 @@ -193,9 +193,8 @@ filters = { "addbreaks": nl2br, + "age": age, "basename": os.path.basename, - "stripdir": stripdir, - "age": age, "date": lambda x: util.datestr(x), "domain": domain, "email": util.email, @@ -203,7 +202,7 @@ "fill68": lambda x: fill(x, width=68), "fill76": lambda x: fill(x, width=76), "firstline": firstline, - "tabindent": lambda x: indent(x, '\t'), + "hex": node.hex, "hgdate": lambda x: "%d %d" % x, "isodate": lambda x: util.datestr(x, '%Y-%m-%d %H:%M %1%2'), "isodatesec": lambda x: util.datestr(x, '%Y-%m-%d %H:%M:%S %1%2'), @@ -214,15 +213,16 @@ "obfuscate": obfuscate, "permissions": permissions, "person": person, + "rfc3339date": lambda x: util.datestr(x, "%Y-%m-%dT%H:%M:%S%1:%2"), "rfc822date": lambda x: util.datestr(x, "%a, %d %b %Y %H:%M:%S %1%2"), - "rfc3339date": lambda x: util.datestr(x, "%Y-%m-%dT%H:%M:%S%1:%2"), - "hex": node.hex, "short": lambda x: x[:12], "shortdate": util.shortdate, + "stringescape": lambda x: x.encode('string_escape'), "stringify": stringify, "strip": lambda x: x.strip(), + "stripdir": stripdir, + "tabindent": lambda x: indent(x, '\t'), "urlescape": lambda x: urllib.quote(x), "user": lambda x: util.shortuser(x), - "stringescape": lambda x: x.encode('string_escape'), "xmlescape": xmlescape, }