Mercurial > hg
changeset 23015:21c44c1aed87
repoview: add a FilteredLookupError class
This exception is a more precise LookupError that will allow us to
issue a special message when we end up accessing a filtered revision.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 16 Oct 2014 02:05:06 -0700 |
parents | f00813325c5a |
children | 2bd51e61c65e |
files | mercurial/changelog.py mercurial/error.py |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changelog.py Wed Oct 15 17:02:44 2014 -0700 +++ b/mercurial/changelog.py Thu Oct 16 02:05:06 2014 -0700 @@ -190,7 +190,8 @@ """filtered version of revlog.rev""" r = super(changelog, self).rev(node) if r in self.filteredrevs: - raise error.LookupError(hex(node), self.indexfile, _('no node')) + raise error.FilteredLookupError(hex(node), self.indexfile, + _('filtered node')) return r def node(self, rev):