##// END OF EJS Templates
filelog: subclass the new `repository.ifilestorage` Protocol class...
Matt Harbison -
r53386:ba8f03ad default
parent child Browse files
Show More
@@ -21,6 +21,9 from mercurial import (
21 manifest,
21 manifest,
22 pycompat,
22 pycompat,
23 )
23 )
24 from mercurial.interfaces import (
25 repository,
26 )
24 from mercurial.utils import stringutil
27 from mercurial.utils import stringutil
25 from . import (
28 from . import (
26 gitutil,
29 gitutil,
@@ -471,8 +474,7 class manifestlog(baselog):
471 return gitmanifest.gittreemanifestctx(self.gitrepo, t)
474 return gitmanifest.gittreemanifestctx(self.gitrepo, t)
472
475
473
476
474 # @interfaceutil.implementer(repository.ifilestorage)
477 class filelog(baselog, repository.ifilestorage):
475 class filelog(baselog):
476 def __init__(self, gr, db, path):
478 def __init__(self, gr, db, path):
477 super(filelog, self).__init__(gr, db)
479 super(filelog, self).__init__(gr, db)
478 assert isinstance(path, bytes)
480 assert isinstance(path, bytes)
@@ -312,8 +312,7 class sqliteproblem(repository.iverifypr
312 node = attr.ib(default=None, type=Optional[bytes])
312 node = attr.ib(default=None, type=Optional[bytes])
313
313
314
314
315 @interfaceutil.implementer(repository.ifilestorage)
315 class sqlitefilestore(repository.ifilestorage):
316 class sqlitefilestore:
317 """Implements storage for an individual tracked path."""
316 """Implements storage for an individual tracked path."""
318
317
319 def __init__(self, db, path, compression):
318 def __init__(self, db, path, compression):
@@ -28,7 +28,7 from .revlogutils import (
28 )
28 )
29
29
30
30
31 class filelog: # (repository.ifilestorage)
31 class filelog(repository.ifilestorage):
32 _revlog: revlog.revlog
32 _revlog: revlog.revlog
33 nullid: bytes
33 nullid: bytes
34 _fix_issue6528: bool
34 _fix_issue6528: bool
@@ -40,7 +40,6 from mercurial import (
40 )
40 )
41 from mercurial.interfaces import (
41 from mercurial.interfaces import (
42 repository,
42 repository,
43 util as interfaceutil,
44 )
43 )
45 from mercurial.utils import (
44 from mercurial.utils import (
46 cborutil,
45 cborutil,
@@ -96,8 +95,7 class simplefilestoreproblem(repository.
96 node = attr.ib(default=None, type=Optional[bytes])
95 node = attr.ib(default=None, type=Optional[bytes])
97
96
98
97
99 @interfaceutil.implementer(repository.ifilestorage)
98 class filestorage(repository.ifilestorage):
100 class filestorage:
101 """Implements storage for a tracked path.
99 """Implements storage for a tracked path.
102
100
103 Data is stored in the VFS in a directory corresponding to the tracked
101 Data is stored in the VFS in a directory corresponding to the tracked
General Comments 0
You need to be logged in to leave comments. Login now