[PATCH 09 of 15] localrepo: necessary changes for changegroupsubset to support parentdelta

Pradeepkumar Gayam in3xes at gmail.com
Mon Jul 12 05:49:51 CDT 2010


# HG changeset patch
# User Pradeepkumar Gayam <in3xes at gmail.com>
# Date 1278879003 -19800
# Branch stable
# Node ID 3c91a6fb7298312cea1f0cc0190393a6ad20a3cd
# Parent  0c1b55b0504e237d3ef6d80bc21c9093d83005ae
localrepo: necessary changes for changegroupsubset to support parentdelta

diff -r 0c1b55b0504e -r 3c91a6fb7298 mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Jul 12 01:35:18 2010 +0530
+++ b/mercurial/localrepo.py	Mon Jul 12 01:40:03 2010 +0530
@@ -1453,7 +1453,7 @@
 
             # Create a changenode group generator that will call our functions
             # back to lookup the owning changenode and collect information.
-            group = cl.group(msng_cl_lst, identity, collect)
+            group = cl.group(msng_cl_lst, identity, collect, pdelta)
             cnt = 0
             for chnk in group:
                 yield chnk
@@ -1481,7 +1481,7 @@
             # Create a generator for the manifestnodes that calls our lookup
             # and data collection functions back.
             group = mnfst.group(msng_mnfst_lst, lookup_manifest_link,
-                                filenode_collector(changedfiles))
+                                filenode_collector(changedfiles), pdelta)
             cnt = 0
             for chnk in group:
                 yield chnk
@@ -1525,7 +1525,8 @@
                     # lookup function as we need to collect no information
                     # from filenodes.
                     group = filerevlog.group(msng_filenode_lst,
-                                             lookup_filenode_link_func(fname))
+                                             lookup_filenode_link_func(fname),
+                                             pdelta=pdelta)
                     for chnk in group:
                         self.ui.progress(
                             _('bundling files'), cnt, item=fname, unit=_('chunks'))


More information about the Mercurial-devel mailing list