Mercurial > hg
changeset 52071:3f47f0d92b4a
manifest: drop the CamelCase name for `manifest.memmanifestctx`
See 61557734c0ae for the reasoning.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 23 Oct 2024 16:41:02 -0400 |
parents | 6641a3ae8313 |
children | ca080c4d93e0 |
files | mercurial/manifest.py |
diffstat | 1 files changed, 3 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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