# HG changeset patch # User Christian Ebert # Date 1299932395 -3600 # Node ID 5d6d605c93f80e9812ecf72978567fdb646ca890 # Parent 1fb7ab079d11694245048e9f21332f3c6cf23cd1# Parent ddd525b7dd4acb77172200188d6fe359d929f8bf Merge with stable diff -r 1fb7ab079d11 -r 5d6d605c93f8 hgkw/keyword.py --- a/hgkw/keyword.py Thu Mar 10 22:02:02 2011 +0100 +++ b/hgkw/keyword.py Sat Mar 12 13:19:55 2011 +0100 @@ -109,11 +109,14 @@ } # date like in cvs' $Date -utcdate = lambda x: util.datestr((x[0], 0), '%Y/%m/%d %H:%M:%S') +def utcdate(text): + return util.datestr((text[0], 0), '%Y/%m/%d %H:%M:%S') # date like in svn's $Date -svnisodate = lambda x: util.datestr(x, '%Y-%m-%d %H:%M:%S %1%2 (%a, %d %b %Y)') +def svnisodate(text): + return util.datestr(text, '%Y-%m-%d %H:%M:%S %1%2 (%a, %d %b %Y)') # date like in svn's $Id -svnutcdate = lambda x: util.datestr((x[0], 0), '%Y-%m-%d %H:%M:%SZ') +def svnutcdate(text): + return util.datestr((text[0], 0), '%Y-%m-%d %H:%M:%SZ') # make keyword tools accessible kwtools = {'templater': None, 'hgcmd': ''}