Show More
@@ -244,7 +244,7 class FileLog: | |||||
244 | """ |
|
244 | """ | |
245 | return not storageutil.filedataequivalent(self, node, text) |
|
245 | return not storageutil.filedataequivalent(self, node, text) | |
246 |
|
246 | |||
247 |
def verifyintegrity(self, state) -> Iterable[revlog. |
|
247 | def verifyintegrity(self, state) -> Iterable[revlog.revlogproblem]: | |
248 | return self._revlog.verifyintegrity(state) |
|
248 | return self._revlog.verifyintegrity(state) | |
249 |
|
249 | |||
250 | def storageinfo( |
|
250 | def storageinfo( |
@@ -98,7 +98,6 from . import ( | |||||
98 | ) |
|
98 | ) | |
99 | from .interfaces import ( |
|
99 | from .interfaces import ( | |
100 | repository, |
|
100 | repository, | |
101 | util as interfaceutil, |
|
|||
102 | ) |
|
101 | ) | |
103 | from .revlogutils import ( |
|
102 | from .revlogutils import ( | |
104 | deltas as deltautil, |
|
103 | deltas as deltautil, | |
@@ -205,20 +204,12 class revlogrevisiondelta: # (repositor | |||||
205 |
|
204 | |||
206 |
|
205 | |||
207 | @attr.s(frozen=True) |
|
206 | @attr.s(frozen=True) | |
208 | class RevLogProblem: |
|
207 | class revlogproblem: # (repository.iverifyproblem) | |
209 | warning = attr.ib(default=None, type=Optional[bytes]) |
|
208 | warning = attr.ib(default=None, type=Optional[bytes]) | |
210 | error = attr.ib(default=None, type=Optional[bytes]) |
|
209 | error = attr.ib(default=None, type=Optional[bytes]) | |
211 | node = attr.ib(default=None, type=Optional[bytes]) |
|
210 | node = attr.ib(default=None, type=Optional[bytes]) | |
212 |
|
211 | |||
213 |
|
212 | |||
214 | revlogproblem = interfaceutil.implementer(repository.iverifyproblem)( |
|
|||
215 | RevLogProblem |
|
|||
216 | ) |
|
|||
217 |
|
||||
218 | if typing.TYPE_CHECKING: |
|
|||
219 | revlogproblem = RevLogProblem |
|
|||
220 |
|
||||
221 |
|
||||
222 | def parse_index_v1(data, inline): |
|
213 | def parse_index_v1(data, inline): | |
223 | # call the C implementation to parse the index data |
|
214 | # call the C implementation to parse the index data | |
224 | index, cache = parsers.parse_index2(data, inline) |
|
215 | index, cache = parsers.parse_index2(data, inline) | |
@@ -3884,7 +3875,7 class revlog: | |||||
3884 | else: |
|
3875 | else: | |
3885 | rewrite.v2_censor(self, tr, censor_nodes, tombstone) |
|
3876 | rewrite.v2_censor(self, tr, censor_nodes, tombstone) | |
3886 |
|
3877 | |||
3887 |
def verifyintegrity(self, state) -> Iterable[ |
|
3878 | def verifyintegrity(self, state) -> Iterable[revlogproblem]: | |
3888 | """Verifies the integrity of the revlog. |
|
3879 | """Verifies the integrity of the revlog. | |
3889 |
|
3880 | |||
3890 | Yields ``revlogproblem`` instances describing problems that are |
|
3881 | Yields ``revlogproblem`` instances describing problems that are |
General Comments 0
You need to be logged in to leave comments.
Login now