Skip to content
Snippets Groups Projects
Commit 39f7d4ee authored by Gregory Szorc's avatar Gregory Szorc
Browse files

repository: port peer interfaces to zope.interface

zope.interface is superior. Let's switch to it.

Unlike abc, which defines interfaces through a base class,
zope.interface uses different types for interfaces and for
implementations. So, we had to invent some new types to hold the
interfaces in order to separate the interface from its default
implementation.

The names here could probably be better. I've been wanting to
overhaul the peer interface for a while. And wire protocol version
2 will force that work. So anticipate a refactoring of these
interfaces in later commits.

With this commit, we no longer test abc interfaces in
test-check-interfaces.py, so code for that has been removed.

Differential Revision: https://phab.mercurial-scm.org/D3068

# no-check-commit because of stream_out()
parent 36d17f37
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment