changeset 52100:66579606f677

localrepo: drop the CamelCase name for `localrepo.localpeer` See 61557734c0ae for the reasoning.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 23 Oct 2024 16:59:43 -0400
parents ff4562ed9ed7
children 36be02a749e0
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Oct 23 16:51:18 2024 -0400
+++ b/mercurial/localrepo.py	Wed Oct 23 16:59:43 2024 -0400
@@ -305,11 +305,11 @@
         self._closed = True
 
 
-class LocalPeer(repository.peer):
+class localpeer(repository.peer):  # (repository.ipeercommands)
     '''peer for a local repo; reflects only the most recent API'''
 
     def __init__(self, repo, caps=None, path=None, remotehidden=False):
-        super(LocalPeer, self).__init__(
+        super(localpeer, self).__init__(
             repo.ui, path=path, remotehidden=remotehidden
         )
 
@@ -459,13 +459,6 @@
     # End of peer interface.
 
 
-localpeer = interfaceutil.implementer(repository.ipeercommands)(LocalPeer)
-
-if typing.TYPE_CHECKING:
-    # Help pytype by hiding the interface stuff that confuses it.
-    localpeer = LocalPeer
-
-
 class LocalLegacyPeer(localpeer):
     """peer extension which implements legacy methods too; used for tests with
     restricted capabilities"""