Mercurial > hg-stable
changeset 52089:9e94f9dbbbe8
revlog: drop the CamelCase name for `revlog.revlogproblem`
See 61557734c0ae for the reasoning.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 23 Oct 2024 16:22:21 -0400 |
parents | 61557734c0ae |
children | 2876d077a796 |
files | mercurial/filelog.py mercurial/revlog.py |
diffstat | 2 files changed, 3 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/filelog.py Wed Oct 23 16:19:24 2024 -0400 +++ b/mercurial/filelog.py Wed Oct 23 16:22:21 2024 -0400 @@ -244,7 +244,7 @@ """ return not storageutil.filedataequivalent(self, node, text) - def verifyintegrity(self, state) -> Iterable[revlog.RevLogProblem]: + def verifyintegrity(self, state) -> Iterable[revlog.revlogproblem]: return self._revlog.verifyintegrity(state) def storageinfo(
--- 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