mercurial/wireproto.py
changeset 24641 60fecc5b14a4
parent 23878 37a92908a382
child 24649 2d15c59a001b
--- a/mercurial/wireproto.py	Mon Apr 06 15:40:12 2015 -0700
+++ b/mercurial/wireproto.py	Mon Apr 06 16:04:33 2015 -0700
@@ -364,7 +364,7 @@
         f = self._callcompressable("getbundle", **opts)
         bundlecaps = kwargs.get('bundlecaps')
         if bundlecaps is not None and 'HG2Y' in bundlecaps:
-            return bundle2.unbundle20(self.ui, f)
+            return bundle2.getunbundler(self.ui, f)
         else:
             return changegroupmod.cg1unpacker(f, 'UN')
 
@@ -401,7 +401,7 @@
         else:
             # bundle2 push. Send a stream, fetch a stream.
             stream = self._calltwowaystream('unbundle', cg, heads=heads)
-            ret = bundle2.unbundle20(self.ui, stream)
+            ret = bundle2.getunbundler(self.ui, stream)
         return ret
 
     def debugwireargs(self, one, two, three=None, four=None, five=None):