# HG changeset patch # User Matt Harbison # Date 2024-10-23 21:08:57 # Node ID 513b413702e8c034d57b8b69dd4a2aeb60d580a0 # Parent fc77b968aacedbdd227da6100a42723dcd93835f localrepo: drop the CamelCase name for `localrepo.ilocalrepositorymain` See 61557734c0ae for the reasoning. This one is slightly different, however, because the `localrepository` class already subclasses the interface class in the type checking phase. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -83,7 +83,6 @@ from .branching import ( from .interfaces import ( repository, - util as interfaceutil, ) from .utils import ( @@ -1304,7 +1303,7 @@ if typing.TYPE_CHECKING: ] -class LocalRepository(_localrepo_base_classes): +class localrepository(_localrepo_base_classes): """Main class for representing local repositories. All local repositories are instances of this class. @@ -3606,15 +3605,6 @@ class LocalRepository(_localrepo_base_cl self._sidedata_computers[kind][category] = (keys, computer, flags) -localrepository = interfaceutil.implementer(repository.ilocalrepositorymain)( - LocalRepository -) - -if typing.TYPE_CHECKING: - # Help pytype by hiding the interface stuff that confuses it. - localrepository = LocalRepository - - def undoname(fn: bytes) -> bytes: base, name = os.path.split(fn) assert name.startswith(b'journal')