Closed by commit rHGbcb07684b2b8: repoview: move changelog.node() override to filteredchangelog (authored by martinvonz). This revision was automatically updated to reflect the committed changes.
REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D7244?vs=17574&id=17594 CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7244/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7244 AFFECTED FILES mercurial/changelog.py mercurial/repoview.py CHANGE DETAILS diff --git a/mercurial/repoview.py b/mercurial/repoview.py --- a/mercurial/repoview.py +++ b/mercurial/repoview.py @@ -306,6 +306,12 @@ ) return r + def node(self, rev): + """filtered version of revlog.node""" + if rev in self.filteredrevs: + raise error.FilteredIndexError(rev) + return super(filteredchangelog, self).node(rev) + cl.__class__ = filteredchangelog return cl diff --git a/mercurial/changelog.py b/mercurial/changelog.py --- a/mercurial/changelog.py +++ b/mercurial/changelog.py @@ -404,12 +404,6 @@ self.filteredrevs = frozenset() self._copiesstorage = opener.options.get(b'copies-storage') - def node(self, rev): - """filtered version of revlog.node""" - if rev in self.filteredrevs: - raise error.FilteredIndexError(rev) - return super(changelog, self).node(rev) - def linkrev(self, rev): """filtered version of revlog.linkrev""" if rev in self.filteredrevs: To: martinvonz, #hg-reviewers, indygreg Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel