equal
deleted
inserted
replaced
18 dagop, |
18 dagop, |
19 encoding, |
19 encoding, |
20 error, |
20 error, |
21 manifest, |
21 manifest, |
22 pycompat, |
22 pycompat, |
|
23 ) |
|
24 from mercurial.interfaces import ( |
|
25 repository, |
23 ) |
26 ) |
24 from mercurial.utils import stringutil |
27 from mercurial.utils import stringutil |
25 from . import ( |
28 from . import ( |
26 gitutil, |
29 gitutil, |
27 index, |
30 index, |
469 te = t[p] |
472 te = t[p] |
470 t = self.gitrepo[te.id] |
473 t = self.gitrepo[te.id] |
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) |
479 self.path = path |
481 self.path = path |
480 self.nullid = sha1nodeconstants.nullid |
482 self.nullid = sha1nodeconstants.nullid |