[PATCH] keyword: fix utcdate filter
Christian Ebert
blacktrash at gmx.net
Thu Feb 4 21:02:55 UTC 2010
# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1265317122 0
# Node ID 5e8abad336acaf149abeec26e0afd72587f357c4
# Parent d9aa5b368e36c10d2c29411772fef9fd339c2e9f
keyword: fix utcdate filter
So far the utcdate filter only omitted the timezone,
now it actually converts to utc.
Thanks to Kevin Grover for pointing out the issue.
diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -97,7 +97,7 @@
' transplant')
# provide cvs-like UTC date filter
-utcdate = lambda x: util.datestr(x, '%Y/%m/%d %H:%M:%S')
+utcdate = lambda x: util.datestr((x[0], 0), '%Y/%m/%d %H:%M:%S')
# make keyword tools accessible
kwtools = {'templater': None, 'hgcmd': '', 'inc': [], 'exc': ['.hg*']}
More information about the Mercurial-devel
mailing list