manifest: drop the CamelCase name for `manifest.manifestctx`
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 23 Oct 2024 16:43:22 -0400
changeset 52072 ca080c4d93e0
parent 52071 3f47f0d92b4a
child 52073 569e074894fa
manifest: drop the CamelCase name for `manifest.manifestctx` See 61557734c0ae for the reasoning.
mercurial/manifest.py
--- a/mercurial/manifest.py	Wed Oct 23 16:41:02 2024 -0400
+++ b/mercurial/manifest.py	Wed Oct 23 16:43:22 2024 -0400
@@ -2045,7 +2045,7 @@
         self._revlog.opener = value
 
 
-AnyManifestCtx = Union['ManifestCtx', 'TreeManifestCtx']
+AnyManifestCtx = Union['manifestctx', 'TreeManifestCtx']
 # TODO: drop this in favor of repository.imanifestdict
 AnyManifestDict = Union[manifestdict, treemanifest]
 
@@ -2185,7 +2185,7 @@
         )
 
 
-class ManifestCtx:
+class manifestctx:  # (repository.imanifestrevisionstored)
     """A class representing a single revision of a manifest, including its
     contents, its parent revs, and its linkrev.
     """
@@ -2345,14 +2345,6 @@
         return self.read().find(key)
 
 
-manifestctx = interfaceutil.implementer(repository.imanifestrevisionstored)(
-    ManifestCtx
-)
-
-if typing.TYPE_CHECKING:
-    manifestctx = ManifestCtx
-
-
 class MemTreeManifestCtx:
     _treemanifest: treemanifest