Patchwork D8366: manifest: also declare treemanifest as implementing imanifestdict

login
register
mail settings
Submitter phabricator
Date April 2, 2020, 5:16 p.m.
Message ID <differential-rev-PHID-DREV-lsevvhvdffsxncp5qaxk-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/45999/
State Superseded
Headers show

Comments

phabricator - April 2, 2020, 5:16 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  It always has been intended to be, but it had a mismatched flags()
  method until the previous change.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8366

AFFECTED FILES
  mercurial/manifest.py
  tests/test-check-interfaces.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

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 @@ 
 
     ziverify.verifyClass(repository.ifilestorage, filelog.filelog)
     ziverify.verifyClass(repository.imanifestdict, manifest.manifestdict)
+    ziverify.verifyClass(repository.imanifestdict, manifest.treemanifest)
     ziverify.verifyClass(
         repository.imanifestrevisionstored, manifest.manifestctx
     )
diff --git a/mercurial/manifest.py b/mercurial/manifest.py
--- a/mercurial/manifest.py
+++ b/mercurial/manifest.py
@@ -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