changeset 21072:0879352d67d8

wireproto: add a _calltwowaystream method on wirepeer This method will be used by bundle2 pushes. It calls a command, feeds it with a stream and receives another stream in reply. Actual implementation for ssh and http will be done in later changesets.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 15 Apr 2014 17:19:46 -0400
parents 19b9f23a8c6f
children 83ce71ef7804
files mercurial/wireproto.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/wireproto.py	Tue Apr 15 16:49:30 2014 -0400
+++ b/mercurial/wireproto.py	Tue Apr 15 17:19:46 2014 -0400
@@ -415,6 +415,13 @@
         """
         raise NotImplementedError()
 
+    def _calltwowaystream(self, cmd, fp, **args):
+        """execute <cmd> on server
+
+        The command will send a stream to the server and get a stream in reply.
+        """
+        raise NotImplementedError()
+
     def _abort(self, exception):
         """clearly abort the wire protocol connection and raise the exception
         """