Mercurial > public > mercurial-scm > hg
diff tests/test-debugcommands.t @ 35929:5f029d03cf71
debugcommands: introduce debugpeer command
`hg debugpeer <path>` will establish a connection to a peer repository
and print information about it.
If you add --debug, it will log low-level protocol request info. This
will be useful for upcoming tests around protocol handshaking.
Differential Revision: https://phab.mercurial-scm.org/D2025
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 03 Feb 2018 12:01:01 -0800 |
parents | 1d118f9f4f57 |
children | c64b9adfb371 |
line wrap: on
line diff
--- a/tests/test-debugcommands.t Sun Feb 04 12:47:37 2018 -0800 +++ b/tests/test-debugcommands.t Sat Feb 03 12:01:01 2018 -0800 @@ -381,3 +381,24 @@ https stream v2 + +Test debugpeer + + $ hg --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" debugpeer ssh://user@dummy/debugrevlog + url: ssh://user@dummy/debugrevlog + local: no + pushable: yes + + $ hg --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" --debug debugpeer ssh://user@dummy/debugrevlog + running "*" "*/tests/dummyssh" 'user@dummy' 'hg -R debugrevlog serve --stdio' (glob) + devel-peer-request: hello + sending hello command + devel-peer-request: between + devel-peer-request: pairs: 81 bytes + sending between command + remote: 384 + remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN + remote: 1 + url: ssh://user@dummy/debugrevlog + local: no + pushable: yes