--- a/mercurial/bundlerepo.py Fri Apr 13 11:10:59 2018 -0700
+++ b/mercurial/bundlerepo.py Fri Apr 13 11:12:19 2018 -0700
@@ -553,10 +553,22 @@
cg = other.getbundle('incoming', common=common, heads=rheads)
elif onlyheads is None and not other.capable('changegroupsubset'):
# compat with older servers when pulling all remote heads
- cg = other.changegroup(incoming, "incoming")
+
+ with other.commandexecutor() as e:
+ cg = e.callcommand('changegroup', {
+ 'nodes': incoming,
+ 'source': 'incoming',
+ }).result()
+
rheads = None
else:
- cg = other.changegroupsubset(incoming, rheads, 'incoming')
+ with other.commandexecutor() as e:
+ cg = e.callcommand('changegroupsubset', {
+ 'bases': incoming,
+ 'heads': rheads,
+ 'source': 'incoming',
+ }).result()
+
if localrepo:
bundletype = "HG10BZ"
else: