changeset 52077:36be02a749e0

localrepo: drop the CamelCase name for `localrepo.locallegacypeer` See 61557734c0ae for the reasoning.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 23 Oct 2024 17:01:35 -0400
parents 66579606f677
children eb4f902819d8
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Oct 23 16:59:43 2024 -0400
+++ b/mercurial/localrepo.py	Wed Oct 23 17:01:35 2024 -0400
@@ -459,12 +459,12 @@
     # End of peer interface.
 
 
-class LocalLegacyPeer(localpeer):
+class locallegacypeer(localpeer):  # (repository.ipeerlegacycommands)
     """peer extension which implements legacy methods too; used for tests with
     restricted capabilities"""
 
     def __init__(self, repo, path=None, remotehidden=False):
-        super(LocalLegacyPeer, self).__init__(
+        super(locallegacypeer, self).__init__(
             repo, caps=legacycaps, path=path, remotehidden=remotehidden
         )
 
@@ -491,14 +491,6 @@
     # End of baselegacywirecommands interface.
 
 
-locallegacypeer = interfaceutil.implementer(repository.ipeerlegacycommands)(
-    LocalLegacyPeer
-)
-
-if typing.TYPE_CHECKING:
-    # Help pytype by hiding the interface stuff that confuses it.
-    locallegacypeer = LocalLegacyPeer
-
 # Functions receiving (ui, features) that extensions can register to impact
 # the ability to load repositories with custom requirements. Only
 # functions defined in loaded extensions are called.