D4437: httppeer: log commands for version 2 peer

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Tue Sep 4 17:47:49 UTC 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3fe028b657bf: httppeer: log commands for version 2 peer (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4437?vs=10694&id=10757

REVISION DETAIL
  https://phab.mercurial-scm.org/D4437

AFFECTED FILES
  mercurial/httppeer.py

CHANGE DETAILS

diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py
--- a/mercurial/httppeer.py
+++ b/mercurial/httppeer.py
@@ -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.



To: indygreg, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list