changeset 23243:c58432685cff

changegroup.cg2packer: lookup 'group' via inheritance chain This lets extensions insert themselves in the class hierarchy.
author Siddharth Agarwal <sid0@fb.com>
date Fri, 07 Nov 2014 17:54:59 -0800
parents 18168938e1c1
children 18cc87e4375a
files mercurial/changegroup.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changegroup.py	Thu Oct 23 17:00:38 2014 -0700
+++ b/mercurial/changegroup.py	Fri Nov 07 17:54:59 2014 -0800
@@ -452,8 +452,8 @@
     def group(self, nodelist, revlog, lookup, units=None, reorder=None):
         if (revlog._generaldelta and reorder is not True):
             reorder = False
-        return cg1packer.group(self, nodelist, revlog, lookup,
-                               units=units, reorder=reorder)
+        return super(cg2packer, self).group(nodelist, revlog, lookup,
+                                            units=units, reorder=reorder)
 
     def deltaparent(self, revlog, rev, p1, p2, prev):
         dp = revlog.deltaparent(rev)