mercurial/exchange.py
changeset 37646 72e26319f3b8
parent 37635 cc8c06835097
child 37647 516b5a5edae3
--- 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: