manifest: subclass the new `repository.imanifestlog` Protocol class
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 22 Oct 2024 22:56:10 -0400
changeset 52484 d371efa7c358
parent 52483 196f441ffc93
child 52485 dfb60fb155da
manifest: subclass the new `repository.imanifestlog` Protocol class This is the same transformation as 3a90a6fd710d did for dirstate, but the CamelCase naming was already cleaned up here. See 4ef6dbc27a99 for the benefits of explicit subclassing.
mercurial/manifest.py
--- a/mercurial/manifest.py	Tue Dec 10 21:59:26 2024 -0500
+++ b/mercurial/manifest.py	Tue Oct 22 22:56:10 2024 -0400
@@ -2055,7 +2055,7 @@
 AnyManifestDict = Union[manifestdict, treemanifest]
 
 
-class manifestlog:  # (repository.imanifestlog)
+class manifestlog(repository.imanifestlog):
     """A collection class representing the collection of manifest snapshots
     referenced by commits in the repository.