hgkw/keyword.py
branchkwmap-templates
changeset 169 6df702b4601e
parent 168 368fbd5b054c
child 170 1a17c8f20f22
equal deleted inserted replaced
168:368fbd5b054c 169:6df702b4601e
   186     Superclass over filelog to customize its read, add, cmp methods.
   186     Superclass over filelog to customize its read, add, cmp methods.
   187     Keywords are "stored" unexpanded, and expanded on reading.
   187     Keywords are "stored" unexpanded, and expanded on reading.
   188     '''
   188     '''
   189     def __init__(self, opener, path, kwtemplater):
   189     def __init__(self, opener, path, kwtemplater):
   190         super(kwfilelog, self).__init__(opener, path)
   190         super(kwfilelog, self).__init__(opener, path)
   191         self.path = path
       
   192         self.kwtemplater = kwtemplater
   191         self.kwtemplater = kwtemplater
   193 
   192 
   194     def read(self, node):
   193     def read(self, node):
   195         '''Substitutes keywords when reading filelog.'''
   194         '''Substitutes keywords when reading filelog.'''
   196         data = super(kwfilelog, self).read(node)
   195         data = super(kwfilelog, self).read(node)