diff --git a/mercurial/changelog.py b/mercurial/changelog.py --- a/mercurial/changelog.py +++ b/mercurial/changelog.py @@ -190,7 +190,8 @@ class changelog(revlog.revlog): """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): diff --git a/mercurial/error.py b/mercurial/error.py --- a/mercurial/error.py +++ b/mercurial/error.py @@ -30,6 +30,9 @@ class LookupError(RevlogError, KeyError) def __str__(self): return RevlogError.__str__(self) +class FilteredLookupError(LookupError): + pass + class ManifestLookupError(LookupError): pass