changeset 44664:8c66a680f396

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
author Augie Fackler <augie@google.com>
date Mon, 03 Feb 2020 22:17:19 -0500
parents 948fac24bc39
children e89b3603d3da
files mercurial/manifest.py tests/test-check-interfaces.py
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/manifest.py	Thu Apr 02 13:04:41 2020 -0400
+++ b/mercurial/manifest.py	Mon Feb 03 22:17:19 2020 -0500
@@ -760,6 +760,7 @@
 _noop = lambda s: None
 
 
+@interfaceutil.implementer(repository.imanifestdict)
 class treemanifest(object):
     def __init__(self, dir=b'', text=b''):
         self._dir = dir
--- a/tests/test-check-interfaces.py	Thu Apr 02 13:04:41 2020 -0400
+++ b/tests/test-check-interfaces.py	Mon Feb 03 22:17:19 2020 -0500
@@ -211,6 +211,7 @@
 
     ziverify.verifyClass(repository.ifilestorage, filelog.filelog)
     ziverify.verifyClass(repository.imanifestdict, manifest.manifestdict)
+    ziverify.verifyClass(repository.imanifestdict, manifest.treemanifest)
     ziverify.verifyClass(
         repository.imanifestrevisionstored, manifest.manifestctx
     )