Mercurial > hg
diff mercurial/manifest.py @ 52073:569e074894fa
manifest: drop the CamelCase name for `manifest.memtreemanifestctx`
See 61557734c0ae for the reasoning.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 23 Oct 2024 16:45:12 -0400 |
parents | ca080c4d93e0 |
children | 33f255bf19d9 |
line wrap: on
line diff
--- a/mercurial/manifest.py Wed Oct 23 16:43:22 2024 -0400 +++ b/mercurial/manifest.py Wed Oct 23 16:45:12 2024 -0400 @@ -2345,7 +2345,7 @@ return self.read().find(key) -class MemTreeManifestCtx: +class memtreemanifestctx: # (repository.imanifestrevisionwritable) _treemanifest: treemanifest def __init__(self, manifestlog, dir=b''): @@ -2356,7 +2356,7 @@ 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 @@ ) -memtreemanifestctx = interfaceutil.implementer( - repository.imanifestrevisionwritable -)(MemTreeManifestCtx) - -if typing.TYPE_CHECKING: - memtreemanifestctx = MemTreeManifestCtx - - class TreeManifestCtx: _data: Optional[treemanifest] @@ -2451,7 +2443,7 @@ 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