D3884: tests: use interfaceutil in simplestorerepo

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Wed Jul 4 15:43:53 EDT 2018


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

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')
 
- at zi.implementer(repository.ifilestorage)
+ at interfaceutil.implementer(repository.ifilestorage)
 class filestorage(object):
     """Implements storage for a tracked path.
 



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


More information about the Mercurial-devel mailing list