Mercurial > hg-stable
changeset 39455:3fe028b657bf
httppeer: log commands for version 2 peer
This will aid testing and debugging.
Differential Revision: https://phab.mercurial-scm.org/D4437
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 31 Aug 2018 08:57:14 -0700 |
parents | 1467b6c27ff9 |
children | 3c6f7eebc010 |
files | mercurial/httppeer.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/httppeer.py Wed Aug 22 10:29:30 2018 -0700 +++ b/mercurial/httppeer.py Fri Aug 31 08:57:14 2018 -0700 @@ -36,6 +36,7 @@ ) from .utils import ( interfaceutil, + stringutil, ) httplib = util.httplib @@ -557,7 +558,10 @@ else: url += '/%s' % requests[0][0] + ui.debug('sending %d commands\n' % len(requests)) for command, args, f in requests: + ui.debug('sending command %s: %s\n' % ( + command, stringutil.pprint(args, indent=2))) assert not list(handler.callcommand(command, args, f)) # TODO stream this.