manifest: drop the CamelCase name for `manifest.manifestlog`
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 23 Oct 2024 16:39:12 -0400
changeset 52070 6641a3ae8313
parent 52069 4675ab746a02
child 52071 3f47f0d92b4a
manifest: drop the CamelCase name for `manifest.manifestlog` See 61557734c0ae for the reasoning.
mercurial/manifest.py
mercurial/statichttprepo.py
mercurial/store.py
--- a/mercurial/manifest.py	Wed Oct 23 16:36:50 2024 -0400
+++ b/mercurial/manifest.py	Wed Oct 23 16:39:12 2024 -0400
@@ -2050,7 +2050,7 @@
 AnyManifestDict = Union[manifestdict, treemanifest]
 
 
-class ManifestLog:
+class manifestlog:  # (repository.imanifestlog)
     """A collection class representing the collection of manifest snapshots
     referenced by commits in the repository.
 
@@ -2154,12 +2154,6 @@
         return self._rootstore._revlog.update_caches(transaction=transaction)
 
 
-manifestlog = interfaceutil.implementer(repository.imanifestlog)(ManifestLog)
-
-if typing.TYPE_CHECKING:
-    manifestlog = ManifestLog
-
-
 class MemManifestCtx:
     _manifestdict: manifestdict
 
--- a/mercurial/statichttprepo.py	Wed Oct 23 16:36:50 2024 -0400
+++ b/mercurial/statichttprepo.py	Wed Oct 23 16:39:12 2024 -0400
@@ -169,7 +169,7 @@
 ):
     supported = localrepo.localrepository._basesupported
 
-    manifestlog: manifest.ManifestLog
+    manifestlog: manifest.manifestlog
 
     def __init__(self, ui, path):
         self._url = path
--- a/mercurial/store.py	Wed Oct 23 16:36:50 2024 -0400
+++ b/mercurial/store.py	Wed Oct 23 16:39:12 2024 -0400
@@ -823,7 +823,7 @@
             concurrencychecker=concurrencychecker,
         )
 
-    def manifestlog(self, repo, storenarrowmatch) -> manifest.ManifestLog:
+    def manifestlog(self, repo, storenarrowmatch) -> manifest.manifestlog:
         rootstore = manifest.manifestrevlog(repo.nodeconstants, self.vfs)
         return manifest.manifestlog(self.vfs, repo, rootstore, storenarrowmatch)