Show More
@@ -305,11 +305,11 class localcommandexecutor: # (reposito | |||||
305 | self._closed = True |
|
305 | self._closed = True | |
306 |
|
306 | |||
307 |
|
307 | |||
308 |
class |
|
308 | class localpeer(repository.peer): # (repository.ipeercommands) | |
309 | '''peer for a local repo; reflects only the most recent API''' |
|
309 | '''peer for a local repo; reflects only the most recent API''' | |
310 |
|
310 | |||
311 | def __init__(self, repo, caps=None, path=None, remotehidden=False): |
|
311 | def __init__(self, repo, caps=None, path=None, remotehidden=False): | |
312 |
super( |
|
312 | super(localpeer, self).__init__( | |
313 | repo.ui, path=path, remotehidden=remotehidden |
|
313 | repo.ui, path=path, remotehidden=remotehidden | |
314 | ) |
|
314 | ) | |
315 |
|
315 | |||
@@ -459,13 +459,6 class LocalPeer(repository.peer): | |||||
459 | # End of peer interface. |
|
459 | # End of peer interface. | |
460 |
|
460 | |||
461 |
|
461 | |||
462 | localpeer = interfaceutil.implementer(repository.ipeercommands)(LocalPeer) |
|
|||
463 |
|
||||
464 | if typing.TYPE_CHECKING: |
|
|||
465 | # Help pytype by hiding the interface stuff that confuses it. |
|
|||
466 | localpeer = LocalPeer |
|
|||
467 |
|
||||
468 |
|
||||
469 | class LocalLegacyPeer(localpeer): |
|
462 | class LocalLegacyPeer(localpeer): | |
470 | """peer extension which implements legacy methods too; used for tests with |
|
463 | """peer extension which implements legacy methods too; used for tests with | |
471 | restricted capabilities""" |
|
464 | restricted capabilities""" |
General Comments 0
You need to be logged in to leave comments.
Login now