Mercurial > public > mercurial-scm > hg
diff mercurial/changegroup.py @ 13786:4ed718f909e5
changegroup: roll changegroup.collector into lookup functions
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 28 Mar 2011 11:18:56 -0500 |
parents | acbe171c8fbe |
children | d69c9510d648 |
line wrap: on
line diff
--- a/mercurial/changegroup.py Mon Mar 28 11:18:56 2011 -0500 +++ b/mercurial/changegroup.py Mon Mar 28 11:18:56 2011 -0500 @@ -49,15 +49,6 @@ "HG10GZ": ("HG10GZ", lambda: zlib.compressobj()), } -def collector(cl, mmfs, files): - # Gather information about changeset nodes going out in a bundle. - # We want to gather manifests needed and filelogs affected. - def collect(node): - c = cl.read(node) - files.update(c[3]) - mmfs.setdefault(c[0], node) - return collect - # hgweb uses this list to communicate its preferred type bundlepriority = ['HG10GZ', 'HG10BZ', 'HG10UN']