# HG changeset patch # User Matt Harbison # Date 1729717295 14400 # Node ID 36be02a749e051dee1daa2b282bb62d99b0781e7 # Parent 66579606f67703bf43ce18fa2e133b86b186f007 localrepo: drop the CamelCase name for `localrepo.locallegacypeer` See 61557734c0ae for the reasoning. diff -r 66579606f677 -r 36be02a749e0 mercurial/localrepo.py --- 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.