Mercurial > public > mercurial-scm > hg
diff mercurial/wireprotov1peer.py @ 52496:e123c8a26a70
localrepo: subclass the new `repository.ipeercommandexecutor` Protocol class
This is the same transformation as 3a90a6fd710d did for dirstate, but the
CamelCase naming was already cleaned up here. See 4ef6dbc27a99 for the benefits
of explicit subclassing.
Since we're direct subclassing here and there are only a few methods on this
interface, also make them abstract like was done in ef119f914fc1.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 24 Oct 2024 20:26:25 -0400 |
parents | 8b791764fc52 |
children | 61f70a6ab645 |
line wrap: on
line diff
--- a/mercurial/wireprotov1peer.py Wed Oct 23 15:58:32 2024 -0400 +++ b/mercurial/wireprotov1peer.py Thu Oct 24 20:26:25 2024 -0400 @@ -107,8 +107,7 @@ return self.result(timeout) -# @interfaceutil.implementer(repository.ipeercommandexecutor) -class peerexecutor: +class peerexecutor(repository.ipeercommandexecutor): def __init__(self, peer): self._peer = peer self._sent = False