Mercurial > hg-stable
changeset 43505:61c372100008
repoview: move changelog.flags() override to filteredchangelog
Differential Revision: https://phab.mercurial-scm.org/D7247
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 05 Nov 2019 14:33:02 -0800 |
parents | e1dae2ef5588 |
children | c8e5b3094a1d |
files | mercurial/changelog.py mercurial/repoview.py |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changelog.py Tue Nov 05 14:31:50 2019 -0800 +++ b/mercurial/changelog.py Tue Nov 05 14:33:02 2019 -0800 @@ -404,12 +404,6 @@ self.filteredrevs = frozenset() self._copiesstorage = opener.options.get(b'copies-storage') - def flags(self, rev): - """filtered version of revlog.flags""" - if rev in self.filteredrevs: - raise error.FilteredIndexError(rev) - return super(changelog, self).flags(rev) - def delayupdate(self, tr): b"delay visibility of index updates to other readers"
--- a/mercurial/repoview.py Tue Nov 05 14:31:50 2019 -0800 +++ b/mercurial/repoview.py Tue Nov 05 14:33:02 2019 -0800 @@ -325,6 +325,12 @@ raise error.FilteredIndexError(rev) return super(filteredchangelog, self).parentrevs(rev) + def flags(self, rev): + """filtered version of revlog.flags""" + if rev in self.filteredrevs: + raise error.FilteredIndexError(rev) + return super(filteredchangelog, self).flags(rev) + cl.__class__ = filteredchangelog return cl