comparison mercurial/manifest.py @ 29962:6b5a9a01f29d

manifest: add manifestlog.add This adds a simple add() function to manifestlog. This lets us convert more uses of repo.manifest to use repo.manifestlog, so we can further break our dependency on the manifest class.
author Durham Goode <durham@fb.com>
date Tue, 20 Sep 2016 12:24:01 -0700
parents 774a15b129e8
children 14ad8e2a4abe
comparison
equal deleted inserted replaced
29961:774a15b129e8 29962:6b5a9a01f29d
1047 m = manifestctx(self._revlog, node) 1047 m = manifestctx(self._revlog, node)
1048 if node != revlog.nullid: 1048 if node != revlog.nullid:
1049 self._mancache[node] = m 1049 self._mancache[node] = m
1050 return m 1050 return m
1051 1051
1052 def add(self, m, transaction, link, p1, p2, added, removed):
1053 return self._revlog.add(m, transaction, link, p1, p2, added, removed)
1054
1052 class manifestctx(object): 1055 class manifestctx(object):
1053 """A class representing a single revision of a manifest, including its 1056 """A class representing a single revision of a manifest, including its
1054 contents, its parent revs, and its linkrev. 1057 contents, its parent revs, and its linkrev.
1055 """ 1058 """
1056 def __init__(self, revlog, node): 1059 def __init__(self, revlog, node):