Mercurial > hg
diff mercurial/changegroup.py @ 38556: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 | 1c5c4a5dd86d |
children | e7aa113b14f7 |
line wrap: on
line diff
--- a/mercurial/changegroup.py Wed Jul 04 12:12:49 2018 -0700 +++ b/mercurial/changegroup.py Sun Jul 01 14:25:44 2018 -0700 @@ -245,7 +245,7 @@ # be empty during the pull self.manifestheader() deltas = self.deltaiter() - repo.manifestlog._revlog.addgroup(deltas, revmap, trp) + repo.manifestlog.addgroup(deltas, revmap, trp) prog.complete() self.callback = None