Patchwork D3884: tests: use interfaceutil in simplestorerepo

login
register
mail settings
Submitter phabricator
Date July 4, 2018, 7:16 p.m.
Message ID <differential-rev-PHID-DREV-fmvuhzjye5pjbs3xeaan-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/32614/
State Superseded
Headers show

Comments

phabricator - July 4, 2018, 7:16 p.m.
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Without it, we crash at module import time.
  
  This has likely been busted since https://phab.mercurial-scm.org/rHG856f381ad74b78f5188a8e12648e9f7d38097c46.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/simplestorerepo.py

CHANGE DETAILS




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

Patch

diff --git a/tests/simplestorerepo.py b/tests/simplestorerepo.py
--- a/tests/simplestorerepo.py
+++ b/tests/simplestorerepo.py
@@ -24,9 +24,6 @@ 
 from mercurial.thirdparty import (
     cbor,
 )
-from mercurial.thirdparty.zope import (
-    interface as zi,
-)
 from mercurial import (
     ancestor,
     bundlerepo,
@@ -40,6 +37,9 @@ 
     store,
     verify,
 )
+from mercurial.utils import (
+    interfaceutil,
+)
 
 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
@@ -60,7 +60,7 @@ 
     if not isinstance(rev, int):
         raise ValueError('expected int')
 
-@zi.implementer(repository.ifilestorage)
+@interfaceutil.implementer(repository.ifilestorage)
 class filestorage(object):
     """Implements storage for a tracked path.