--- a/mercurial/exchange.py Thu Apr 12 12:33:07 2018 -0700
+++ b/mercurial/exchange.py Fri Apr 13 11:30:44 2018 -0700
@@ -1096,8 +1096,12 @@
stream = util.chunkbuffer(bundler.getchunks())
try:
try:
- reply = pushop.remote.unbundle(
- stream, ['force'], pushop.remote.url())
+ with pushop.remote.commandexecutor() as e:
+ reply = e.callcommand('unbundle', {
+ 'bundle': stream,
+ 'heads': ['force'],
+ 'url': pushop.remote.url(),
+ }).result()
except error.BundleValueError as exc:
raise error.Abort(_('missing support for %s') % exc)
try: