diff extensions/kwarchive.py @ 88:a40cf98f7f8d

Make an "HGshortdate" keyword with the date only (no time)
author Franz Glasner <hg@dom66.de>
date Fri, 23 Feb 2018 13:54:15 +0100
parents a9b532915ce0
children 36369940d31b
line wrap: on
line diff
--- a/extensions/kwarchive.py	Fri Feb 23 13:53:51 2018 +0100
+++ b/extensions/kwarchive.py	Fri Feb 23 13:54:15 2018 +0100
@@ -370,6 +370,7 @@
         "HGrevision": ctx.hex(),
         "Revision": templatefilters.short(ctx.hex()),
         "Date": templatefilters.isodatesec(ctx.date()),
+        "HGshortdate": templatefilters.shortdate(ctx.date()),
     }
     if user_filter == "user":
         keywords["Author"] = templatefilters.emailuser(ctx.user())