manifest: drop the CamelCase name for `manifest.memtreemanifestctx`
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 23 Oct 2024 16:45:12 -0400
changeset 52097 569e074894fa
parent 52096 ca080c4d93e0
child 52098 33f255bf19d9
manifest: drop the CamelCase name for `manifest.memtreemanifestctx` See 61557734c0ae for the reasoning.
mercurial/manifest.py
--- 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