Show More
@@ -283,6 +283,17 b' class sshpeer(wireproto.wirepeer):' | |||||
283 |
|
283 | |||
284 | def _callstream(self, cmd, **args): |
|
284 | def _callstream(self, cmd, **args): | |
285 | args = pycompat.byteskwargs(args) |
|
285 | args = pycompat.byteskwargs(args) | |
|
286 | if (self.ui.debugflag | |||
|
287 | and self.ui.configbool('devel', 'debug.peer-request')): | |||
|
288 | dbg = self.ui.debug | |||
|
289 | line = 'devel-peer-request: %s\n' | |||
|
290 | dbg(line % cmd) | |||
|
291 | for key, value in sorted(args.items()): | |||
|
292 | if not isinstance(value, dict): | |||
|
293 | dbg(line % ' %s: %d bytes' % (key, len(value))) | |||
|
294 | else: | |||
|
295 | for dk, dv in sorted(value.items()): | |||
|
296 | dbg(line % ' %s-%s: %d' % (key, dk, len(dv))) | |||
286 | self.ui.debug("sending %s command\n" % cmd) |
|
297 | self.ui.debug("sending %s command\n" % cmd) | |
287 | self._pipeo.write("%s\n" % cmd) |
|
298 | self._pipeo.write("%s\n" % cmd) | |
288 | _func, names = wireproto.commands[cmd] |
|
299 | _func, names = wireproto.commands[cmd] |
@@ -478,19 +478,32 b' stderr from remote commands should be pr' | |||||
478 |
|
478 | |||
479 | debug output |
|
479 | debug output | |
480 |
|
480 | |||
481 | $ hg pull --debug ssh://user@dummy/remote |
|
481 | $ hg pull --debug ssh://user@dummy/remote --config devel.debug.peer-request=yes | |
482 | pulling from ssh://user@dummy/remote |
|
482 | pulling from ssh://user@dummy/remote | |
483 | running .* ".*/dummyssh" ['"]user@dummy['"] ('|")hg -R remote serve --stdio('|") (re) |
|
483 | running .* ".*/dummyssh" ['"]user@dummy['"] ('|")hg -R remote serve --stdio('|") (re) | |
|
484 | devel-peer-request: hello | |||
484 | sending hello command |
|
485 | sending hello command | |
|
486 | devel-peer-request: between | |||
|
487 | devel-peer-request: pairs: 81 bytes | |||
485 | sending between command |
|
488 | sending between command | |
486 | remote: 384 |
|
489 | remote: 384 | |
487 | remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS$ unbundle=HG10GZ,HG10BZ,HG10UN |
|
490 | remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS$ unbundle=HG10GZ,HG10BZ,HG10UN | |
488 | remote: 1 |
|
491 | remote: 1 | |
489 | query 1; heads |
|
492 | query 1; heads | |
|
493 | devel-peer-request: batch | |||
|
494 | devel-peer-request: cmds: 141 bytes | |||
490 | sending batch command |
|
495 | sending batch command | |
491 | searching for changes |
|
496 | searching for changes | |
492 | all remote heads known locally |
|
497 | all remote heads known locally | |
493 | no changes found |
|
498 | no changes found | |
|
499 | devel-peer-request: getbundle | |||
|
500 | devel-peer-request: bookmarks: 1 bytes | |||
|
501 | devel-peer-request: bundlecaps: 233 bytes | |||
|
502 | devel-peer-request: cg: 1 bytes | |||
|
503 | devel-peer-request: common: 122 bytes | |||
|
504 | devel-peer-request: heads: 122 bytes | |||
|
505 | devel-peer-request: listkeys: 9 bytes | |||
|
506 | devel-peer-request: phases: 1 bytes | |||
494 | sending getbundle command |
|
507 | sending getbundle command | |
495 | bundle2-input-bundle: with-transaction |
|
508 | bundle2-input-bundle: with-transaction | |
496 | bundle2-input-part: "bookmarks" supported |
|
509 | bundle2-input-part: "bookmarks" supported |
General Comments 0
You need to be logged in to leave comments.
Login now