Mercurial > public > mercurial-scm > hg-stable
diff mercurial/manifest.py @ 38557:0db41eb0a3ac
manifest: define and implement addgroup() on manifestlog
Changegroup code was bypassing our manifest interface and calling a
method on the private revlog attribute.
This commit formalizes the interface for adding a group of
revisions from deltas and changes the changegroup code to use it.
This enables alternate manifest storage to work with changegroup
application operations (like `hg unbundle` and `hg pull`).
Differential Revision: https://phab.mercurial-scm.org/D3883
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 01 Jul 2018 14:25:44 -0700 |
parents | f2f9bacf0587 |
children | 28c9d67d88ab |
line wrap: on
line diff
--- a/mercurial/manifest.py Wed Jul 04 12:12:49 2018 -0700 +++ b/mercurial/manifest.py Sun Jul 01 14:25:44 2018 -0700 @@ -1351,6 +1351,9 @@ def rev(self, node): return self._revlog.rev(node) + def addgroup(self, deltas, linkmapper, transaction): + return self._revlog.addgroup(deltas, linkmapper, transaction) + @interfaceutil.implementer(repository.imanifestrevisionwritable) class memmanifestctx(object): def __init__(self, manifestlog):