Mercurial > hg
diff mercurial/repoview.py @ 43451:983cda0e110c
repoview: move changelog.linkrev() override to filteredchangelog
Differential Revision: https://phab.mercurial-scm.org/D7245
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 05 Nov 2019 14:23:32 -0800 |
parents | 6f3222bbfce0 |
children | e1dae2ef5588 |
line wrap: on
line diff
--- a/mercurial/repoview.py Tue Nov 05 14:22:25 2019 -0800 +++ b/mercurial/repoview.py Tue Nov 05 14:23:32 2019 -0800 @@ -313,6 +313,12 @@ raise error.FilteredIndexError(rev) return super(filteredchangelog, self).node(rev) + def linkrev(self, rev): + """filtered version of revlog.linkrev""" + if rev in self.filteredrevs: + raise error.FilteredIndexError(rev) + return super(filteredchangelog, self).linkrev(rev) + cl.__class__ = filteredchangelog return cl