Mercurial > hg
comparison mercurial/wireprotov1peer.py @ 37650:62ebfda864de
repository: remove ipeercommands from ipeerbase
AFAICT all callers in core have moved to the commandexecutor
interface for invoking wire protocol commands. Or at least they
aren't using the named methods on ipeercommands to invoke them.
This means we can drop ipeercommands from the ipeerbase interface.
As far as interface based programming goes, it is now illegal to call
an ipeercommands method for issuing wire protocol commands. However,
the methods are still there, so they will still work. At some
point we will want to break that API...
Differential Revision: https://phab.mercurial-scm.org/D3318
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 13 Apr 2018 11:54:13 -0700 |
parents | a168799687e5 |
children | 1cb54e6193a6 |
comparison
equal
deleted
inserted
replaced
37649:a168799687e5 | 37650:62ebfda864de |
---|---|
306 except Exception: | 306 except Exception: |
307 f.set_exception_info(*sys.exc_info()[1:]) | 307 f.set_exception_info(*sys.exc_info()[1:]) |
308 else: | 308 else: |
309 f.set_result(result) | 309 f.set_result(result) |
310 | 310 |
311 @zi.implementer(repository.ipeerlegacycommands) | 311 @zi.implementer(repository.ipeercommands, repository.ipeerlegacycommands) |
312 class wirepeer(repository.peer): | 312 class wirepeer(repository.peer): |
313 """Client-side interface for communicating with a peer repository. | 313 """Client-side interface for communicating with a peer repository. |
314 | 314 |
315 Methods commonly call wire protocol commands of the same name. | 315 Methods commonly call wire protocol commands of the same name. |
316 | 316 |