# HG changeset patch # User Matt Harbison # Date 2024-10-23 20:41:02 # Node ID 3f47f0d92b4a9d56ff99d49f8bd3bcf0669b6e00 # Parent 6641a3ae8313fd2d89f2a626a3b586e94ae7bfac manifest: drop the CamelCase name for `manifest.memmanifestctx` See 61557734c0ae for the reasoning. diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -2154,7 +2154,7 @@ class manifestlog: # (repository.imanif return self._rootstore._revlog.update_caches(transaction=transaction) -class MemManifestCtx: +class memmanifestctx: # (repository.imanifestrevisionwritable) _manifestdict: manifestdict def __init__(self, manifestlog): @@ -2164,7 +2164,7 @@ class MemManifestCtx: def _storage(self) -> manifestrevlog: return self._manifestlog.getstorage(b'') - def copy(self) -> 'MemManifestCtx': + def copy(self) -> 'memmanifestctx': memmf = memmanifestctx(self._manifestlog) memmf._manifestdict = self.read().copy() return memmf @@ -2185,14 +2185,6 @@ class MemManifestCtx: ) -memmanifestctx = interfaceutil.implementer( - repository.imanifestrevisionwritable -)(MemManifestCtx) - -if typing.TYPE_CHECKING: - memmanifestctx = MemManifestCtx - - class ManifestCtx: """A class representing a single revision of a manifest, including its contents, its parent revs, and its linkrev. @@ -2219,7 +2211,7 @@ class ManifestCtx: def node(self) -> bytes: return self._node - def copy(self) -> MemManifestCtx: + def copy(self) -> memmanifestctx: memmf = memmanifestctx(self._manifestlog) memmf._manifestdict = self.read().copy() return memmf