mercurial/revlog.py
changeset 52061 9e94f9dbbbe8
parent 52060 61557734c0ae
child 52162 13815c9decd4
--- a/mercurial/revlog.py	Wed Oct 23 16:19:24 2024 -0400
+++ b/mercurial/revlog.py	Wed Oct 23 16:22:21 2024 -0400
@@ -98,7 +98,6 @@
 )
 from .interfaces import (
     repository,
-    util as interfaceutil,
 )
 from .revlogutils import (
     deltas as deltautil,
@@ -205,20 +204,12 @@
 
 
 @attr.s(frozen=True)
-class RevLogProblem:
+class revlogproblem:  # (repository.iverifyproblem)
     warning = attr.ib(default=None, type=Optional[bytes])
     error = attr.ib(default=None, type=Optional[bytes])
     node = attr.ib(default=None, type=Optional[bytes])
 
 
-revlogproblem = interfaceutil.implementer(repository.iverifyproblem)(
-    RevLogProblem
-)
-
-if typing.TYPE_CHECKING:
-    revlogproblem = RevLogProblem
-
-
 def parse_index_v1(data, inline):
     # call the C implementation to parse the index data
     index, cache = parsers.parse_index2(data, inline)
@@ -3884,7 +3875,7 @@
         else:
             rewrite.v2_censor(self, tr, censor_nodes, tombstone)
 
-    def verifyintegrity(self, state) -> Iterable[RevLogProblem]:
+    def verifyintegrity(self, state) -> Iterable[revlogproblem]:
         """Verifies the integrity of the revlog.
 
         Yields ``revlogproblem`` instances describing problems that are