Pass filelog, not kwfilelog, to kwtemplater.expand/context.filectx kwmap-templates
authorChristian Ebert <blacktrash@gmx.net>
Thu, 28 Jun 2007 10:15:04 +0200
branchkwmap-templates
changeset 171 8713a7a3f5ab
parent 170 1a17c8f20f22
child 172 ad0da655bd12
Pass filelog, not kwfilelog, to kwtemplater.expand/context.filectx
hgkw/keyword.py
--- a/hgkw/keyword.py	Thu Jun 28 10:10:46 2007 +0200
+++ b/hgkw/keyword.py	Thu Jun 28 10:15:04 2007 +0200
@@ -194,7 +194,7 @@
     def read(self, node):
         '''Substitutes keywords when reading filelog.'''
         data = super(kwfilelog, self).read(node)
-        return self.kwtemplater.expand(node, self, data)
+        return self.kwtemplater.expand(node, super(kwfilelog, self), data)
 
     def add(self, text, meta, tr, link, p1=None, p2=None):
         '''Removes keyword substitutions when adding to filelog.'''