(stable) merge stable
authorChristian Ebert <blacktrash@gmx.net>
Mon, 19 Jul 2010 08:13:48 +0100
branchstable
changeset 772 5ac8451a1bc4
parent 770 25fcb8ed70c4 (current diff)
parent 771 09e39675a702 (diff)
child 774 997913902cf2
(stable) merge
--- a/hgkw/keyword.py	Wed Jun 16 11:08:43 2010 +0200
+++ b/hgkw/keyword.py	Mon Jul 19 08:13:48 2010 +0100
@@ -159,9 +159,9 @@
         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.'''