Patchwork D8366: manifest: also declare treemanifest as implementing imanifestdict

login
register
mail settings
Submitter phabricator
Date April 3, 2020, 9:46 a.m.
Message ID <a1fead98e3f87532ac8f7d7c19609b07@localhost.localdomain>
Download mbox | patch
Permalink /patch/46013/
State Not Applicable
Headers show

Comments

phabricator - April 3, 2020, 9:46 a.m.
Closed by commit rHG8c66a680f396: manifest: also declare treemanifest as implementing imanifestdict (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8366?vs=20969&id=20983

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8366/new/

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

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

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
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