##// END OF EJS Templates
repoview: add a FilteredIndexError class...
Pierre-Yves David -
r23014:f0081332 default
parent child Browse files
Show More
@@ -196,25 +196,25 b' class changelog(revlog.revlog):'
196 196 def node(self, rev):
197 197 """filtered version of revlog.node"""
198 198 if rev in self.filteredrevs:
199 raise IndexError(rev)
199 raise error.FilteredIndexError(rev)
200 200 return super(changelog, self).node(rev)
201 201
202 202 def linkrev(self, rev):
203 203 """filtered version of revlog.linkrev"""
204 204 if rev in self.filteredrevs:
205 raise IndexError(rev)
205 raise error.FilteredIndexError(rev)
206 206 return super(changelog, self).linkrev(rev)
207 207
208 208 def parentrevs(self, rev):
209 209 """filtered version of revlog.parentrevs"""
210 210 if rev in self.filteredrevs:
211 raise IndexError(rev)
211 raise error.FilteredIndexError(rev)
212 212 return super(changelog, self).parentrevs(rev)
213 213
214 214 def flags(self, rev):
215 215 """filtered version of revlog.flags"""
216 216 if rev in self.filteredrevs:
217 raise IndexError(rev)
217 raise error.FilteredIndexError(rev)
218 218 return super(changelog, self).flags(rev)
219 219
220 220 def delayupdate(self):
@@ -16,6 +16,9 b' imports.'
16 16 class RevlogError(Exception):
17 17 pass
18 18
19 class FilteredIndexError(IndexError):
20 pass
21
19 22 class LookupError(RevlogError, KeyError):
20 23 def __init__(self, name, index, message):
21 24 self.name = name
General Comments 0
You need to be logged in to leave comments. Login now