##// 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 """filtered version of revlog.rev"""
190 """filtered version of revlog.rev"""
191 r = super(changelog, self).rev(node)
191 r = super(changelog, self).rev(node)
192 if r in self.filteredrevs:
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 return r
195 return r
195
196
196 def node(self, rev):
197 def node(self, rev):
@@ -30,6 +30,9 b' class LookupError(RevlogError, KeyError)'
30 def __str__(self):
30 def __str__(self):
31 return RevlogError.__str__(self)
31 return RevlogError.__str__(self)
32
32
33 class FilteredLookupError(LookupError):
34 pass
35
33 class ManifestLookupError(LookupError):
36 class ManifestLookupError(LookupError):
34 pass
37 pass
35
38
General Comments 0
You need to be logged in to leave comments. Login now