equal
deleted
inserted
replaced
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): |