hgkw/keyword.py
branchkwmap-templates
changeset 141 edf9299112d1
parent 140 cade80b9d83d
child 142 aedce5bcc9eb
equal deleted inserted replaced
140:cade80b9d83d 141:edf9299112d1
   218                      defversion=revlog.REVLOG_DEFAULT_VERSION):
   218                      defversion=revlog.REVLOG_DEFAULT_VERSION):
   219             super(kwfilelog, self).__init__(opener, path, defversion)
   219             super(kwfilelog, self).__init__(opener, path, defversion)
   220             self._repo = repo
   220             self._repo = repo
   221             self._path = path
   221             self._path = path
   222             # only init kwtemplater if needed
   222             # only init kwtemplater if needed
   223             if repo and hasattr(repo, 'kwfmatcher') and repo.kwfmatcher(path):
   223             if hasattr(repo, 'kwfmatcher') and repo.kwfmatcher(path):
   224                 self.kwt = kwtemplater(repo.ui, repo)
   224                 self.kwt = kwtemplater(repo.ui, repo)
   225             else:
   225             else:
   226                 self.kwt = None
   226                 self.kwt = None
   227 
   227 
   228         def read(self, node):
   228         def read(self, node):