changegroup: remove external uses of getbundler
authorDurham Goode <durham@fb.com>
Sun, 10 Sep 2017 18:51:31 -0700
changeset 34102 dbf598196f05
parent 34101 5ede882c249c
child 34103 92f1e2be8ab6
changegroup: remove external uses of getbundler Now that makestream and makechangegroup are the primary creation methods for changegroups, let's get rid of this rogue use of getbundler and getsubsetraw. Differential Revision: https://phab.mercurial-scm.org/D670
mercurial/exchange.py
--- 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 = {}