D2999: infinitepush: use zope.interface to define indexapi interface
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Sat Mar 31 17:22:50 UTC 2018
indygreg requested changes to this revision.
indygreg added a comment.
This revision now requires changes to proceed.
Please also add test coverage to `test-check-interfaces.py`, otherwise these interfaces mean practically nothing. `zope.interface` doesn't perform run-time interface conformance tests unless you explicitly instruct it to. For now, we're going to verify interfaces in `test-check-interfaces.py`.
INLINE COMMENTS
> indexapi.py:25
>
> def __init__(self):
> """Initializes the metadata store connection."""
`Interface` classes don't define `self` on methods. So please drop `self` from all these methods.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2999
To: pulkit, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel
More information about the Mercurial-devel
mailing list