Mercurial > hg
comparison mercurial/changelog.py @ 43452:e1dae2ef5588
repoview: move changelog.parentrevs() override to filteredchangelog
Differential Revision: https://phab.mercurial-scm.org/D7246
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 05 Nov 2019 14:31:50 -0800 |
parents | 983cda0e110c |
children | 61c372100008 |
comparison
equal
deleted
inserted
replaced
43451:983cda0e110c | 43452:e1dae2ef5588 |
---|---|
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 parentrevs(self, rev): | |
408 """filtered version of revlog.parentrevs""" | |
409 if rev in self.filteredrevs: | |
410 raise error.FilteredIndexError(rev) | |
411 return super(changelog, self).parentrevs(rev) | |
412 | 406 |
413 def flags(self, rev): | 407 def flags(self, rev): |
414 """filtered version of revlog.flags""" | 408 """filtered version of revlog.flags""" |
415 if rev in self.filteredrevs: | 409 if rev in self.filteredrevs: |
416 raise error.FilteredIndexError(rev) | 410 raise error.FilteredIndexError(rev) |