mercurial/localrepo.py
changeset 24641 60fecc5b14a4
parent 24639 c79b1e690110
child 24686 e0e28e910fa3
--- a/mercurial/localrepo.py	Mon Apr 06 15:40:12 2015 -0700
+++ b/mercurial/localrepo.py	Mon Apr 06 16:04:33 2015 -0700
@@ -114,7 +114,7 @@
             # When requesting a bundle2, getbundle returns a stream to make the
             # wire level function happier. We need to build a proper object
             # from it in local peer.
-            cg = bundle2.unbundle20(self.ui, cg)
+            cg = bundle2.getunbundler(self.ui, cg)
         return cg
 
     # TODO We might want to move the next two calls into legacypeer and add
@@ -132,7 +132,7 @@
                 # This little dance should be dropped eventually when the API
                 # is finally improved.
                 stream = util.chunkbuffer(ret.getchunks())
-                ret = bundle2.unbundle20(self.ui, stream)
+                ret = bundle2.getunbundler(self.ui, stream)
             return ret
         except error.PushRaced, exc:
             raise error.ResponseError(_('push failed:'), str(exc))