Mercurial > hg
comparison mercurial/changegroup.py @ 11648:801533a52799
changegroup*(): use set instead of dict
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 22 Jul 2010 14:34:37 +0200 |
parents | 5cef810e588f |
children | 270fb4d39153 |
comparison
equal
deleted
inserted
replaced
11647:96d3d340f6ec | 11648:801533a52799 |
---|---|
59 def collector(cl, mmfs, files): | 59 def collector(cl, mmfs, files): |
60 # Gather information about changeset nodes going out in a bundle. | 60 # Gather information about changeset nodes going out in a bundle. |
61 # We want to gather manifests needed and filelogs affected. | 61 # We want to gather manifests needed and filelogs affected. |
62 def collect(node): | 62 def collect(node): |
63 c = cl.read(node) | 63 c = cl.read(node) |
64 for fn in c[3]: | 64 files.update(c[3]) |
65 files.setdefault(fn, fn) | |
66 mmfs.setdefault(c[0], node) | 65 mmfs.setdefault(c[0], node) |
67 return collect | 66 return collect |
68 | 67 |
69 # hgweb uses this list to communicate its preferred type | 68 # hgweb uses this list to communicate its preferred type |
70 bundlepriority = ['HG10GZ', 'HG10BZ', 'HG10UN'] | 69 bundlepriority = ['HG10GZ', 'HG10BZ', 'HG10UN'] |