mercurial/changegroup.py
changeset 10356 bc2414948012
parent 10263 25e572394f5c
child 10430 5cef810e588f
--- a/mercurial/changegroup.py	Sun Feb 07 00:51:59 2010 +0100
+++ b/mercurial/changegroup.py	Sun Feb 07 09:58:41 2010 +0100
@@ -54,6 +54,16 @@
     "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)
+        for fn in c[3]:
+            files.setdefault(fn, fn)
+        mmfs.setdefault(c[0], node)
+    return collect
+
 # hgweb uses this list to communicate its preferred type
 bundlepriority = ['HG10GZ', 'HG10BZ', 'HG10UN']