Mercurial > public > mercurial-scm > hg-stable
diff mercurial/manifest.py @ 29966: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 |
line wrap: on
line diff
--- a/mercurial/manifest.py Tue Sep 20 12:24:01 2016 -0700 +++ b/mercurial/manifest.py Tue Sep 20 12:24:01 2016 -0700 @@ -1049,6 +1049,9 @@ self._mancache[node] = m return m + def add(self, m, transaction, link, p1, p2, added, removed): + return self._revlog.add(m, transaction, link, p1, p2, added, removed) + class manifestctx(object): """A class representing a single revision of a manifest, including its contents, its parent revs, and its linkrev.