manifest: drop the CamelCase name for `manifest.memtreemanifestctx`
See 61557734c0ae for the reasoning.
--- 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