--- a/mercurial/wireproto.py Wed Mar 14 15:56:34 2018 -0400
+++ b/mercurial/wireproto.py Mon Mar 05 11:48:28 2018 -0500
@@ -400,6 +400,13 @@
Returns an iterator of the raw responses from the server.
"""
+ ui = self.ui
+ if ui.debugflag and ui.configbool('devel', 'debug.peer-request'):
+ ui.debug('devel-peer-request: batched-content\n')
+ for op, args in req:
+ msg = 'devel-peer-request: - %s (%d arguments)\n'
+ ui.debug(msg % (op, len(args)))
+
rsp = self._callstream("batch", cmds=encodebatchcmds(req))
chunk = rsp.read(1024)
work = [chunk]