D670: changegroup: remove external uses of getbundler
durham (Durham Goode)
phabricator at mercurial-scm.org
Mon Sep 11 02:07:17 UTC 2017
durham created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Now that makestream and makechangegroup are the primary creation methods for
changegroups, let's get rid of this rogue use of getbundler and getsubsetraw.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D670
AFFECTED FILES
mercurial/exchange.py
CHANGE DETAILS
diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -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 = {}
To: durham, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list