Patchwork D3884: tests: use interfaceutil in simplestorerepo

login
register
mail settings
Submitter phabricator
Date July 4, 2018, 7:43 p.m.
Message ID <f76c96e4dbd2aba69a309b968679736b@localhost.localdomain>
Download mbox | patch
Permalink /patch/32617/
State Not Applicable
Headers show

Comments

phabricator - July 4, 2018, 7:43 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG404eab7ff33f: tests: use interfaceutil in simplestorerepo (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3884?vs=9435&id=9437

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

AFFECTED FILES
  tests/simplestorerepo.py

CHANGE DETAILS




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