##// END OF EJS Templates
typing: make the filelog class known to pytype...
Matt Harbison -
r52715:e78b75f3 default
parent child Browse files
Show More
@@ -6,6 +6,8
6 6 # GNU General Public License version 2 or any later version.
7 7
8 8
9 import typing
10
9 11 from .i18n import _
10 12 from .node import nullrev
11 13 from . import (
@@ -23,8 +25,7 from .revlogutils import (
23 25 )
24 26
25 27
26 @interfaceutil.implementer(repository.ifilestorage)
27 class filelog:
28 class FileLog:
28 29 def __init__(self, opener, path, try_split=False):
29 30 self._revlog = revlog.revlog(
30 31 opener,
@@ -262,6 +263,12 class filelog:
262 263 return self._revlog.clone(tr, destrevlog._revlog, **kwargs)
263 264
264 265
266 filelog = interfaceutil.implementer(repository.ifilestorage)(FileLog)
267
268 if typing.TYPE_CHECKING:
269 filelog = FileLog
270
271
265 272 class narrowfilelog(filelog):
266 273 """Filelog variation to be used with narrow stores."""
267 274
General Comments 0
You need to be logged in to leave comments. Login now