# HG changeset patch # User Christian Ebert # Date 2010-07-15 08:24:31 # Node ID fda0e478fb7945b15110738885b8f54bcf2ff576 # Parent 6dbdf5c5c5bdc05cbbc204387a06268f95b94937 keyword: add extra datefilters in a single update call diff --git a/hgext/keyword.py b/hgext/keyword.py --- a/hgext/keyword.py +++ b/hgext/keyword.py @@ -159,9 +159,9 @@ class kwtemplater(object): kwpat = r'\$(%s)(: [^$\n\r]*? )??\$' % '|'.join(escaped) self.re_kw = re.compile(kwpat) - templatefilters.filters['utcdate'] = utcdate - templatefilters.filters['svnisodate'] = svnisodate - templatefilters.filters['svnutcdate'] = svnutcdate + templatefilters.filters.update({'utcdate': utcdate, + 'svnisodate': svnisodate, + 'svnutcdate': svnutcdate}) def substitute(self, data, path, ctx, subfunc): '''Replaces keywords in data with expanded template.'''