manifest: drop the CamelCase name for `manifest.memmanifestctx`
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 23 Oct 2024 16:41:02 -0400
changeset 52071 3f47f0d92b4a
parent 52070 6641a3ae8313
child 52072 ca080c4d93e0
manifest: drop the CamelCase name for `manifest.memmanifestctx` See 61557734c0ae for the reasoning.
mercurial/manifest.py
--- a/mercurial/manifest.py	Wed Oct 23 16:39:12 2024 -0400
+++ b/mercurial/manifest.py	Wed Oct 23 16:41:02 2024 -0400
@@ -2154,7 +2154,7 @@
         return self._rootstore._revlog.update_caches(transaction=transaction)
 
 
-class MemManifestCtx:
+class memmanifestctx:  # (repository.imanifestrevisionwritable)
     _manifestdict: manifestdict
 
     def __init__(self, manifestlog):
@@ -2164,7 +2164,7 @@
     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 @@
         )
 
 
-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 @@
     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