# HG changeset patch # User Augie Fackler # Date 2020-02-04 03:17:19 # Node ID 8c66a680f396937475f5d45427b26bf80ee8bf85 # Parent 948fac24bc39beeec2ee000c473ecb15a7d44117 manifest: also declare treemanifest as implementing imanifestdict It always has been intended to be, but it had a mismatched flags() method until the previous change. Differential Revision: https://phab.mercurial-scm.org/D8366 diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -760,6 +760,7 @@ def _splittopdir(f): _noop = lambda s: None +@interfaceutil.implementer(repository.imanifestdict) class treemanifest(object): def __init__(self, dir=b'', text=b''): self._dir = dir diff --git a/tests/test-check-interfaces.py b/tests/test-check-interfaces.py --- a/tests/test-check-interfaces.py +++ b/tests/test-check-interfaces.py @@ -211,6 +211,7 @@ def main(): ziverify.verifyClass(repository.ifilestorage, filelog.filelog) ziverify.verifyClass(repository.imanifestdict, manifest.manifestdict) + ziverify.verifyClass(repository.imanifestdict, manifest.treemanifest) ziverify.verifyClass( repository.imanifestrevisionstored, manifest.manifestctx )