##// END OF EJS Templates
repoview: add a FilteredLookupError class...
Pierre-Yves David -
r23015:21c44c1a default
parent child Browse files
Show More
@@ -190,7 +190,8 b' class changelog(revlog.revlog):'
190 190 """filtered version of revlog.rev"""
191 191 r = super(changelog, self).rev(node)
192 192 if r in self.filteredrevs:
193 raise error.LookupError(hex(node), self.indexfile, _('no node'))
193 raise error.FilteredLookupError(hex(node), self.indexfile,
194 _('filtered node'))
194 195 return r
195 196
196 197 def node(self, rev):
@@ -30,6 +30,9 b' class LookupError(RevlogError, KeyError)'
30 30 def __str__(self):
31 31 return RevlogError.__str__(self)
32 32
33 class FilteredLookupError(LookupError):
34 pass
35
33 36 class ManifestLookupError(LookupError):
34 37 pass
35 38
General Comments 0
You need to be logged in to leave comments. Login now