Mercurial > public > mercurial-scm > hg-stable
diff mercurial/interfaces/repository.py @ 52511:ed70604d6e07
interfaces: convert `repository.imanifestlog` from zope `Attribute` attrs
This is the same transformation as b455dfddfed0 did for dirstate.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 22 Oct 2024 22:52:08 -0400 |
parents | 01818a59f463 |
children | 196f441ffc93 |
line wrap: on
line diff
--- a/mercurial/interfaces/repository.py Tue Oct 22 22:44:32 2024 -0400 +++ b/mercurial/interfaces/repository.py Tue Oct 22 22:52:08 2024 -0400 @@ -1552,13 +1552,11 @@ tree manifests. """ - nodeconstants = interfaceutil.Attribute( - """nodeconstants used by the current repository.""" - ) - - narrowed = interfaceutil.Attribute( - """True, is the manifest is narrowed by a matcher""" - ) + nodeconstants: NodeConstants + """nodeconstants used by the current repository.""" + + narrowed: bool + """True, is the manifest is narrowed by a matcher""" def __getitem__(self, node): """Obtain a manifest instance for a given binary node.