Mercurial > hg
comparison mercurial/changelog.py @ 43450:6f3222bbfce0
repoview: move changelog.node() override to filteredchangelog
Differential Revision: https://phab.mercurial-scm.org/D7244
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 05 Nov 2019 14:22:25 -0800 |
parents | c45195f9af0a |
children | 983cda0e110c |
comparison
equal
deleted
inserted
replaced
43449:c45195f9af0a | 43450:6f3222bbfce0 |
---|---|
401 self._delayed = False | 401 self._delayed = False |
402 self._delaybuf = None | 402 self._delaybuf = None |
403 self._divert = False | 403 self._divert = False |
404 self.filteredrevs = frozenset() | 404 self.filteredrevs = frozenset() |
405 self._copiesstorage = opener.options.get(b'copies-storage') | 405 self._copiesstorage = opener.options.get(b'copies-storage') |
406 | |
407 def node(self, rev): | |
408 """filtered version of revlog.node""" | |
409 if rev in self.filteredrevs: | |
410 raise error.FilteredIndexError(rev) | |
411 return super(changelog, self).node(rev) | |
412 | 406 |
413 def linkrev(self, rev): | 407 def linkrev(self, rev): |
414 """filtered version of revlog.linkrev""" | 408 """filtered version of revlog.linkrev""" |
415 if rev in self.filteredrevs: | 409 if rev in self.filteredrevs: |
416 raise error.FilteredIndexError(rev) | 410 raise error.FilteredIndexError(rev) |