##// END OF EJS Templates
localrepo: drop the CamelCase name for `localrepo.locallegacypeer`...
Matt Harbison -
r52970:36be02a7 default
parent child Browse files
Show More
@@ -459,12 +459,12 class localpeer(repository.peer): # (re
459 # End of peer interface.
459 # End of peer interface.
460
460
461
461
462 class LocalLegacyPeer(localpeer):
462 class locallegacypeer(localpeer): # (repository.ipeerlegacycommands)
463 """peer extension which implements legacy methods too; used for tests with
463 """peer extension which implements legacy methods too; used for tests with
464 restricted capabilities"""
464 restricted capabilities"""
465
465
466 def __init__(self, repo, path=None, remotehidden=False):
466 def __init__(self, repo, path=None, remotehidden=False):
467 super(LocalLegacyPeer, self).__init__(
467 super(locallegacypeer, self).__init__(
468 repo, caps=legacycaps, path=path, remotehidden=remotehidden
468 repo, caps=legacycaps, path=path, remotehidden=remotehidden
469 )
469 )
470
470
@@ -491,14 +491,6 class LocalLegacyPeer(localpeer):
491 # End of baselegacywirecommands interface.
491 # End of baselegacywirecommands interface.
492
492
493
493
494 locallegacypeer = interfaceutil.implementer(repository.ipeerlegacycommands)(
495 LocalLegacyPeer
496 )
497
498 if typing.TYPE_CHECKING:
499 # Help pytype by hiding the interface stuff that confuses it.
500 locallegacypeer = LocalLegacyPeer
501
502 # Functions receiving (ui, features) that extensions can register to impact
494 # Functions receiving (ui, features) that extensions can register to impact
503 # the ability to load repositories with custom requirements. Only
495 # the ability to load repositories with custom requirements. Only
504 # functions defined in loaded extensions are called.
496 # functions defined in loaded extensions are called.
General Comments 0
You need to be logged in to leave comments. Login now