Mercurial > public > mercurial-scm > hg
diff mercurial/changegroup.py @ 29938:a059b17352ef
manifest: add manifestctx.readdelta()
This adds an implementation of readdelta to the new manifestctx class and adds a
couple consumers of it. This currently appears to have some duplicate code, but
future patches cause this function to diverge when things like "shallow" are
introduced.
author | Durham Goode <durham@fb.com> |
---|---|
date | Tue, 13 Sep 2016 16:25:21 -0700 |
parents | 8d226db31f20 |
children | edb49a90723c |
line wrap: on
line diff
--- a/mercurial/changegroup.py Wed Sep 14 17:12:39 2016 +0200 +++ b/mercurial/changegroup.py Tue Sep 13 16:25:21 2016 -0700 @@ -332,7 +332,7 @@ for cset in xrange(clstart, clend): mfnode = repo.changelog.read( repo.changelog.node(cset))[0] - mfest = repo.manifest.readdelta(mfnode) + mfest = repo.manifestlog[mfnode].readdelta() # store file nodes we must see for f, n in mfest.iteritems(): needfiles.setdefault(f, set()).add(n)