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