diff mercurial/interfaces/repository.py @ 52519:ef119f914fc1

localrepo: subclass the new `ilocalrepositoryfilestorage` Protocol class This is the same transformation as 3a90a6fd710d did for dirstate, but the CamelCase naming was already cleaned up here. See 4ef6dbc27a99 for the benefits of explicit subclassing. Since there's only one method in this Protocol class and it needs to be abstract because of the direct subclassing (see cdd4bc69bfc1), do that here.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 23 Oct 2024 15:13:40 -0400
parents 8c89e978375c
children 48cdbd4d5443
line wrap: on
line diff
--- a/mercurial/interfaces/repository.py	Tue Oct 22 23:36:48 2024 -0400
+++ b/mercurial/interfaces/repository.py	Wed Oct 23 15:13:40 2024 -0400
@@ -1658,6 +1658,7 @@
     tracked file path.
     """
 
+    @abc.abstractmethod
     def file(self, f):
         """Obtain a filelog for a tracked path.