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
--- 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 = {}