mercurial/exchange.py
changeset 34102 dbf598196f05
parent 34101 5ede882c249c
child 34127 709b44f38ab9
--- a/mercurial/exchange.py	Sun Sep 10 18:50:12 2017 -0700
+++ b/mercurial/exchange.py	Sun Sep 10 18:51:31 2017 -0700
@@ -1595,8 +1595,8 @@
             raise ValueError(_('unsupported getbundle arguments: %s')
                              % ', '.join(sorted(kwargs.keys())))
         outgoing = _computeoutgoing(repo, heads, common)
-        bundler = changegroup.getbundler('01', repo, bundlecaps)
-        return changegroup.getsubsetraw(repo, outgoing, bundler, source)
+        return changegroup.makestream(repo, outgoing, '01', source,
+                                      bundlecaps=bundlecaps)
 
     # bundle20 case
     b2caps = {}