comparison mercurial/localrepo.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
194 self._sent = True 194 self._sent = True
195 195
196 def close(self): 196 def close(self):
197 self._closed = True 197 self._closed = True
198 198
199 @zi.implementer(repository.ipeercommands)
199 class localpeer(repository.peer): 200 class localpeer(repository.peer):
200 '''peer for a local repo; reflects only the most recent API''' 201 '''peer for a local repo; reflects only the most recent API'''
201 202
202 def __init__(self, repo, caps=None): 203 def __init__(self, repo, caps=None):
203 super(localpeer, self).__init__() 204 super(localpeer, self).__init__()