# HG changeset patch # User Matt Harbison # Date 2024-10-23 20:45:12 # Node ID 569e074894fad839fcfc6934511a0ccf5c11434a # Parent ca080c4d93e0dfb2ce08eded3b860f7222b2387f manifest: drop the CamelCase name for `manifest.memtreemanifestctx` See 61557734c0ae for the reasoning. diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -2345,7 +2345,7 @@ class manifestctx: # (repository.imanif return self.read().find(key) -class MemTreeManifestCtx: +class memtreemanifestctx: # (repository.imanifestrevisionwritable) _treemanifest: treemanifest def __init__(self, manifestlog, dir=b''): @@ -2356,7 +2356,7 @@ class MemTreeManifestCtx: def _storage(self) -> manifestrevlog: return self._manifestlog.getstorage(b'') - def copy(self) -> 'MemTreeManifestCtx': + def copy(self) -> 'memtreemanifestctx': memmf = memtreemanifestctx(self._manifestlog, dir=self._dir) memmf._treemanifest = self._treemanifest.copy() return memmf @@ -2381,14 +2381,6 @@ class MemTreeManifestCtx: ) -memtreemanifestctx = interfaceutil.implementer( - repository.imanifestrevisionwritable -)(MemTreeManifestCtx) - -if typing.TYPE_CHECKING: - memtreemanifestctx = MemTreeManifestCtx - - class TreeManifestCtx: _data: Optional[treemanifest] @@ -2451,7 +2443,7 @@ class TreeManifestCtx: def node(self) -> bytes: return self._node - def copy(self) -> 'MemTreeManifestCtx': + def copy(self) -> 'memtreemanifestctx': memmf = memtreemanifestctx(self._manifestlog, dir=self._dir) memmf._treemanifest = self.read().copy() return memmf