Show More
@@ -6,6 +6,8 | |||||
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
8 |
|
8 | |||
|
9 | import typing | |||
|
10 | ||||
9 | from .i18n import _ |
|
11 | from .i18n import _ | |
10 | from .node import nullrev |
|
12 | from .node import nullrev | |
11 | from . import ( |
|
13 | from . import ( | |
@@ -23,8 +25,7 from .revlogutils import ( | |||||
23 | ) |
|
25 | ) | |
24 |
|
26 | |||
25 |
|
27 | |||
26 | @interfaceutil.implementer(repository.ifilestorage) |
|
28 | class FileLog: | |
27 | class filelog: |
|
|||
28 | def __init__(self, opener, path, try_split=False): |
|
29 | def __init__(self, opener, path, try_split=False): | |
29 | self._revlog = revlog.revlog( |
|
30 | self._revlog = revlog.revlog( | |
30 | opener, |
|
31 | opener, | |
@@ -262,6 +263,12 class filelog: | |||||
262 | return self._revlog.clone(tr, destrevlog._revlog, **kwargs) |
|
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 | class narrowfilelog(filelog): |
|
272 | class narrowfilelog(filelog): | |
266 | """Filelog variation to be used with narrow stores.""" |
|
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