Mercurial > public > mercurial-scm > hg-stable
changeset 52510:22f97aa5e8b2
manifest: subclass the new `imanifestrevisionwritable` 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.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 22 Oct 2024 22:44:32 -0400 |
parents | 01818a59f463 |
children | ed70604d6e07 |
files | hgext/git/manifest.py mercurial/manifest.py |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/git/manifest.py Tue Dec 10 21:55:13 2024 -0500 +++ b/hgext/git/manifest.py Tue Oct 22 22:44:32 2024 -0400 @@ -279,8 +279,7 @@ return self.read()[path] -@interfaceutil.implementer(repository.imanifestrevisionwritable) -class memgittreemanifestctx: +class memgittreemanifestctx(repository.imanifestrevisionwritable): def __init__(self, repo, tree): self._repo = repo self._tree = tree
--- a/mercurial/manifest.py Tue Dec 10 21:55:13 2024 -0500 +++ b/mercurial/manifest.py Tue Oct 22 22:44:32 2024 -0400 @@ -2350,7 +2350,7 @@ return self.read().find(key) -class memtreemanifestctx: # (repository.imanifestrevisionwritable) +class memtreemanifestctx(repository.imanifestrevisionwritable): _treemanifest: treemanifest def __init__(self, manifestlog, dir=b''):