Mercurial > hg
annotate tests/test-ssh-proto-unbundle.t @ 46858:85e3a630cad9
revlog: move the details of revlog "v2" index inside revlog.utils.constants
the revlog module is quite large and this kind of format information would handy
for other module. So let us start to gather this information about the format in
a more appropriate place.
We update various reference to this information to use the new "source of truth"
in the process.
Differential Revision: https://phab.mercurial-scm.org/D10305
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 05 Apr 2021 12:21:12 +0200 |
parents | 7015b0232c5e |
children | 8bf21b3869cd |
rev | line source |
---|---|
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1 $ cat > hgrc-sshv2 << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2 > %include $HGRCPATH |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
3 > [experimental] |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
4 > sshpeer.advertise-v2 = true |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
5 > sshserver.support-v2 = true |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
6 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
7 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
8 $ debugwireproto() { |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
9 > commands=`cat -` |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
10 > echo 'testing ssh1' |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
11 > tip=`hg log -r tip -T '{node}'` |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
12 > echo "${commands}" | hg --verbose debugwireproto --localssh --noreadstderr |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
13 > if [ -n "$1" ]; then |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
14 > hg --config extensions.strip= strip --no-backup -r "all() - ::${tip}" |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
15 > fi |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
16 > echo "" |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
17 > echo 'testing ssh2' |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
18 > echo "${commands}" | HGRCPATH=$TESTTMP/hgrc-sshv2 hg --verbose debugwireproto --localssh --noreadstderr |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
19 > if [ -n "$1" ]; then |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
20 > hg --config extensions.strip= strip --no-backup -r "all() - ::${tip}" |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
21 > fi |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
22 > } |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
23 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
24 Generate some bundle files |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
25 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
26 $ hg init repo |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
27 $ cd repo |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
28 $ echo 0 > foo |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
29 $ hg -q commit -A -m initial |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
30 $ hg bundle --all -t none-v1 ../initial.v1.hg |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
31 1 changesets found |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
32 $ cd .. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
33 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
34 Test pushing bundle1 payload to a server with bundle1 disabled |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
35 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
36 $ hg init no-bundle1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
37 $ cd no-bundle1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
38 $ cat > .hg/hgrc << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
39 > [server] |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
40 > bundle1 = false |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
41 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
42 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
43 $ debugwireproto << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
44 > command unbundle |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
45 > # This is "force" in hex. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
46 > heads 666f726365 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
47 > PUSHFILE ../initial.v1.hg |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
48 > readavailable |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
49 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
50 testing ssh1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
51 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
52 i> write(104) -> 104: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
53 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
54 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
55 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
56 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
57 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
58 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
59 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
60 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
61 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
62 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
63 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
64 o> readline() -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
65 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
66 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
67 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
68 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
69 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
70 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
71 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
72 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
73 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
74 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
75 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
76 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
77 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
78 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
79 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
80 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
81 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
82 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
83 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
84 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
85 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
86 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
87 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
88 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
89 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
90 o> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
91 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
92 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
93 o> read(1) -> 1: 0 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
94 result: 0 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
95 remote output: |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
96 e> read(-1) -> 115: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
97 e> abort: incompatible Mercurial client; bundle2 required\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
98 e> (see https://www.mercurial-scm.org/wiki/IncompatibleClient)\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
99 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
100 testing ssh2 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
101 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
102 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
103 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
104 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
105 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
106 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
107 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
108 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
109 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
110 o> upgraded * exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
111 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
112 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
113 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
114 o> read(1) -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
115 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
116 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
117 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
118 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
119 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
120 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
121 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
122 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
123 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
124 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
125 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
126 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
127 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
128 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
129 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
130 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
131 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
132 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
133 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
134 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
135 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
136 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
137 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
138 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
139 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
140 o> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
141 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
142 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
143 o> read(1) -> 1: 0 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
144 result: 0 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
145 remote output: |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
146 e> read(-1) -> 115: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
147 e> abort: incompatible Mercurial client; bundle2 required\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
148 e> (see https://www.mercurial-scm.org/wiki/IncompatibleClient)\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
149 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
150 $ cd .. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
151 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
152 Create a pretxnchangegroup hook that fails. Give it multiple modes of printing |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
153 output so we can test I/O capture and behavior. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
154 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
155 Test pushing to a server that has a pretxnchangegroup Python hook that fails |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
156 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
157 $ cat > $TESTTMP/failhook << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
158 > from __future__ import print_function |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
159 > import sys |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
160 > def hook1line(ui, repo, **kwargs): |
36660
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
161 > ui.write(b'ui.write 1 line\n') |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
162 > ui.flush() |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
163 > return 1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
164 > def hook2lines(ui, repo, **kwargs): |
36660
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
165 > ui.write(b'ui.write 2 lines 1\n') |
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
166 > ui.write(b'ui.write 2 lines 2\n') |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
167 > ui.flush() |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
168 > return 1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
169 > def hook1lineflush(ui, repo, **kwargs): |
36660
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
170 > ui.write(b'ui.write 1 line flush\n') |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
171 > ui.flush() |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
172 > return 1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
173 > def hookmultiflush(ui, repo, **kwargs): |
36660
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
174 > ui.write(b'ui.write 1st\n') |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
175 > ui.flush() |
36660
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
176 > ui.write(b'ui.write 2nd\n') |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
177 > ui.flush() |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
178 > return 1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
179 > def hookwriteandwriteerr(ui, repo, **kwargs): |
36660
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
180 > ui.write(b'ui.write 1\n') |
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
181 > ui.write_err(b'ui.write_err 1\n') |
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
182 > ui.write(b'ui.write 2\n') |
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
183 > ui.write_err(b'ui.write_err 2\n') |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
184 > ui.flush() |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
185 > return 1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
186 > def hookprintstdout(ui, repo, **kwargs): |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
187 > print('printed line') |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
188 > sys.stdout.flush() |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
189 > return 1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
190 > def hookprintandwrite(ui, repo, **kwargs): |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
191 > print('print 1') |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
192 > sys.stdout.flush() |
36660
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
193 > ui.write(b'ui.write 1\n') |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
194 > ui.flush() |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
195 > print('print 2') |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
196 > sys.stdout.flush() |
36660
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
197 > ui.write(b'ui.write 2\n') |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
198 > ui.flush() |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
199 > return 1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
200 > def hookprintstderrandstdout(ui, repo, **kwargs): |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
201 > print('stdout 1') |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
202 > sys.stdout.flush() |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
203 > print('stderr 1', file=sys.stderr) |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
204 > sys.stderr.flush() |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
205 > print('stdout 2') |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
206 > sys.stdout.flush() |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
207 > print('stderr 2', file=sys.stderr) |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
208 > sys.stderr.flush() |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
209 > return 1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
210 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
211 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
212 $ hg init failrepo |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
213 $ cd failrepo |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
214 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
215 ui.write() in hook is redirected to stderr |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
216 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
217 $ cat > .hg/hgrc << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
218 > [hooks] |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
219 > pretxnchangegroup.fail = python:$TESTTMP/failhook:hook1line |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
220 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
221 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
222 $ debugwireproto << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
223 > command unbundle |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
224 > # This is "force" in hex. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
225 > heads 666f726365 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
226 > PUSHFILE ../initial.v1.hg |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
227 > readavailable |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
228 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
229 testing ssh1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
230 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
231 i> write(104) -> 104: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
232 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
233 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
234 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
235 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
236 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
237 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
238 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
239 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
240 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
241 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
242 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
243 o> readline() -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
244 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
245 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
246 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
247 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
248 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
249 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
250 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
251 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
252 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
253 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
254 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
255 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
256 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
257 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
258 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
259 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
260 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
261 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
262 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
263 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
264 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
265 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
266 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
267 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
268 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
269 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
270 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
271 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
272 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
273 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
274 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
275 e> read(-1) -> 151: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
276 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
277 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
278 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
279 e> ui.write 1 line\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
280 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
281 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
282 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
283 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
284 testing ssh2 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
285 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
286 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
287 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
288 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
289 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
290 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
291 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
292 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
293 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
294 o> upgraded * exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
295 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
296 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
297 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
298 o> read(1) -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
299 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
300 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
301 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
302 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
303 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
304 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
305 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
306 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
307 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
308 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
309 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
310 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
311 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
312 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
313 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
314 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
315 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
316 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
317 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
318 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
319 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
320 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
321 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
322 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
323 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
324 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
325 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
326 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
327 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
328 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
329 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
330 e> read(-1) -> 151: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
331 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
332 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
333 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
334 e> ui.write 1 line\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
335 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
336 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
337 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
338 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
339 And a variation that writes multiple lines using ui.write |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
340 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
341 $ cat > .hg/hgrc << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
342 > [hooks] |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
343 > pretxnchangegroup.fail = python:$TESTTMP/failhook:hook2lines |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
344 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
345 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
346 $ debugwireproto << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
347 > command unbundle |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
348 > # This is "force" in hex. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
349 > heads 666f726365 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
350 > PUSHFILE ../initial.v1.hg |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
351 > readavailable |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
352 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
353 testing ssh1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
354 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
355 i> write(104) -> 104: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
356 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
357 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
358 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
359 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
360 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
361 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
362 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
363 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
364 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
365 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
366 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
367 o> readline() -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
368 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
369 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
370 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
371 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
372 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
373 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
374 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
375 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
376 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
377 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
378 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
379 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
380 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
381 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
382 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
383 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
384 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
385 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
386 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
387 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
388 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
389 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
390 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
391 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
392 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
393 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
394 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
395 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
396 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
397 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
398 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
399 e> read(-1) -> 173: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
400 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
401 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
402 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
403 e> ui.write 2 lines 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
404 e> ui.write 2 lines 2\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
405 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
406 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
407 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
408 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
409 testing ssh2 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
410 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
411 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
412 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
413 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
414 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
415 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
416 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
417 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
418 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
419 o> upgraded * exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
420 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
421 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
422 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
423 o> read(1) -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
424 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
425 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
426 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
427 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
428 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
429 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
430 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
431 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
432 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
433 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
434 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
435 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
436 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
437 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
438 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
439 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
440 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
441 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
442 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
443 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
444 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
445 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
446 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
447 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
448 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
449 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
450 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
451 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
452 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
453 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
454 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
455 e> read(-1) -> 173: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
456 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
457 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
458 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
459 e> ui.write 2 lines 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
460 e> ui.write 2 lines 2\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
461 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
462 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
463 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
464 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
465 And a variation that does a ui.flush() after writing output |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
466 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
467 $ cat > .hg/hgrc << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
468 > [hooks] |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
469 > pretxnchangegroup.fail = python:$TESTTMP/failhook:hook1lineflush |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
470 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
471 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
472 $ debugwireproto << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
473 > command unbundle |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
474 > # This is "force" in hex. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
475 > heads 666f726365 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
476 > PUSHFILE ../initial.v1.hg |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
477 > readavailable |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
478 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
479 testing ssh1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
480 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
481 i> write(104) -> 104: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
482 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
483 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
484 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
485 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
486 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
487 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
488 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
489 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
490 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
491 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
492 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
493 o> readline() -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
494 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
495 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
496 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
497 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
498 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
499 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
500 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
501 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
502 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
503 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
504 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
505 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
506 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
507 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
508 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
509 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
510 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
511 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
512 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
513 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
514 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
515 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
516 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
517 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
518 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
519 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
520 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
521 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
522 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
523 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
524 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
525 e> read(-1) -> 157: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
526 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
527 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
528 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
529 e> ui.write 1 line flush\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
530 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
531 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
532 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
533 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
534 testing ssh2 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
535 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
536 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
537 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
538 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
539 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
540 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
541 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
542 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
543 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
544 o> upgraded * exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
545 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
546 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
547 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
548 o> read(1) -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
549 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
550 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
551 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
552 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
553 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
554 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
555 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
556 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
557 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
558 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
559 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
560 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
561 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
562 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
563 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
564 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
565 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
566 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
567 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
568 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
569 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
570 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
571 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
572 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
573 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
574 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
575 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
576 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
577 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
578 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
579 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
580 e> read(-1) -> 157: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
581 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
582 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
583 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
584 e> ui.write 1 line flush\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
585 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
586 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
587 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
588 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
589 Multiple writes + flush |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
590 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
591 $ cat > .hg/hgrc << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
592 > [hooks] |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
593 > pretxnchangegroup.fail = python:$TESTTMP/failhook:hookmultiflush |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
594 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
595 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
596 $ debugwireproto << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
597 > command unbundle |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
598 > # This is "force" in hex. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
599 > heads 666f726365 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
600 > PUSHFILE ../initial.v1.hg |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
601 > readavailable |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
602 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
603 testing ssh1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
604 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
605 i> write(104) -> 104: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
606 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
607 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
608 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
609 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
610 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
611 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
612 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
613 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
614 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
615 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
616 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
617 o> readline() -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
618 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
619 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
620 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
621 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
622 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
623 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
624 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
625 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
626 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
627 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
628 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
629 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
630 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
631 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
632 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
633 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
634 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
635 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
636 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
637 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
638 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
639 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
640 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
641 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
642 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
643 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
644 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
645 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
646 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
647 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
648 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
649 e> read(-1) -> 161: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
650 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
651 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
652 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
653 e> ui.write 1st\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
654 e> ui.write 2nd\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
655 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
656 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
657 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
658 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
659 testing ssh2 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
660 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
661 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
662 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
663 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
664 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
665 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
666 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
667 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
668 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
669 o> upgraded * exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
670 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
671 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
672 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
673 o> read(1) -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
674 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
675 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
676 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
677 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
678 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
679 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
680 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
681 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
682 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
683 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
684 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
685 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
686 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
687 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
688 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
689 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
690 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
691 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
692 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
693 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
694 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
695 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
696 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
697 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
698 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
699 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
700 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
701 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
702 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
703 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
704 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
705 e> read(-1) -> 161: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
706 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
707 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
708 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
709 e> ui.write 1st\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
710 e> ui.write 2nd\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
711 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
712 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
713 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
714 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
715 ui.write() + ui.write_err() output is captured |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
716 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
717 $ cat > .hg/hgrc << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
718 > [hooks] |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
719 > pretxnchangegroup.fail = python:$TESTTMP/failhook:hookwriteandwriteerr |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
720 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
721 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
722 $ debugwireproto << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
723 > command unbundle |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
724 > # This is "force" in hex. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
725 > heads 666f726365 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
726 > PUSHFILE ../initial.v1.hg |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
727 > readavailable |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
728 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
729 testing ssh1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
730 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
731 i> write(104) -> 104: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
732 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
733 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
734 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
735 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
736 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
737 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
738 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
739 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
740 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
741 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
742 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
743 o> readline() -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
744 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
745 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
746 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
747 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
748 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
749 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
750 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
751 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
752 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
753 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
754 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
755 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
756 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
757 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
758 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
759 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
760 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
761 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
762 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
763 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
764 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
765 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
766 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
767 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
768 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
769 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
770 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
771 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
772 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
773 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
774 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
775 e> read(-1) -> 187: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
776 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
777 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
778 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
779 e> ui.write 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
780 e> ui.write_err 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
781 e> ui.write 2\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
782 e> ui.write_err 2\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
783 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
784 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
785 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
786 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
787 testing ssh2 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
788 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
789 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
790 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
791 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
792 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
793 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
794 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
795 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
796 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
797 o> upgraded * exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
798 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
799 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
800 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
801 o> read(1) -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
802 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
803 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
804 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
805 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
806 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
807 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
808 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
809 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
810 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
811 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
812 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
813 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
814 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
815 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
816 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
817 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
818 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
819 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
820 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
821 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
822 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
823 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
824 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
825 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
826 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
827 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
828 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
829 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
830 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
831 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
832 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
833 e> read(-1) -> 187: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
834 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
835 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
836 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
837 e> ui.write 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
838 e> ui.write_err 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
839 e> ui.write 2\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
840 e> ui.write_err 2\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
841 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
842 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
843 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
844 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
845 print() output is captured |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
846 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
847 $ cat > .hg/hgrc << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
848 > [hooks] |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
849 > pretxnchangegroup.fail = python:$TESTTMP/failhook:hookprintstdout |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
850 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
851 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
852 $ debugwireproto << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
853 > command unbundle |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
854 > # This is "force" in hex. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
855 > heads 666f726365 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
856 > PUSHFILE ../initial.v1.hg |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
857 > readavailable |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
858 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
859 testing ssh1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
860 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
861 i> write(104) -> 104: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
862 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
863 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
864 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
865 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
866 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
867 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
868 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
869 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
870 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
871 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
872 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
873 o> readline() -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
874 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
875 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
876 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
877 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
878 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
879 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
880 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
881 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
882 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
883 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
884 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
885 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
886 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
887 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
888 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
889 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
890 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
891 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
892 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
893 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
894 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
895 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
896 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
897 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
898 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
899 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
900 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
901 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
902 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
903 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
904 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
905 e> read(-1) -> 148: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
906 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
907 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
908 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
909 e> printed line\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
910 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
911 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
912 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
913 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
914 testing ssh2 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
915 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
916 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
917 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
918 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
919 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
920 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
921 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
922 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
923 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
924 o> upgraded * exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
925 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
926 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
927 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
928 o> read(1) -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
929 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
930 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
931 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
932 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
933 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
934 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
935 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
936 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
937 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
938 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
939 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
940 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
941 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
942 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
943 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
944 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
945 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
946 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
947 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
948 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
949 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
950 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
951 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
952 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
953 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
954 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
955 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
956 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
957 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
958 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
959 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
960 e> read(-1) -> 148: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
961 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
962 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
963 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
964 e> printed line\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
965 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
966 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
967 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
968 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
969 Mixed print() and ui.write() are both captured |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
970 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
971 $ cat > .hg/hgrc << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
972 > [hooks] |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
973 > pretxnchangegroup.fail = python:$TESTTMP/failhook:hookprintandwrite |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
974 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
975 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
976 $ debugwireproto << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
977 > command unbundle |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
978 > # This is "force" in hex. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
979 > heads 666f726365 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
980 > PUSHFILE ../initial.v1.hg |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
981 > readavailable |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
982 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
983 testing ssh1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
984 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
985 i> write(104) -> 104: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
986 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
987 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
988 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
989 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
990 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
991 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
992 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
993 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
994 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
995 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
996 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
997 o> readline() -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
998 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
999 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1000 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1001 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1002 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1003 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1004 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1005 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1006 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1007 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1008 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1009 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1010 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1011 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1012 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1013 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1014 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1015 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1016 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1017 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1018 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1019 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1020 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1021 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1022 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1023 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1024 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1025 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1026 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1027 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1028 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1029 e> read(-1) -> 173: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1030 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1031 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1032 e> adding file changes\n |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
1033 e> print 1\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1034 e> ui.write 1\n |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
1035 e> print 2\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1036 e> ui.write 2\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1037 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1038 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1039 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1040 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1041 testing ssh2 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1042 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1043 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1044 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1045 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1046 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1047 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1048 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1049 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1050 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1051 o> upgraded * exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1052 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1053 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1054 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1055 o> read(1) -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1056 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1057 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1058 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1059 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1060 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1061 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1062 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1063 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1064 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1065 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1066 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1067 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1068 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1069 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1070 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1071 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1072 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1073 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1074 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1075 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1076 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1077 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1078 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1079 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1080 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1081 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1082 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1083 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1084 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1085 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1086 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1087 e> read(-1) -> 173: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1088 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1089 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1090 e> adding file changes\n |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
1091 e> print 1\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1092 e> ui.write 1\n |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
1093 e> print 2\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1094 e> ui.write 2\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1095 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1096 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1097 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1098 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1099 print() to stdout and stderr both get captured |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1100 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1101 $ cat > .hg/hgrc << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1102 > [hooks] |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1103 > pretxnchangegroup.fail = python:$TESTTMP/failhook:hookprintstderrandstdout |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1104 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1105 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1106 $ debugwireproto << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1107 > command unbundle |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1108 > # This is "force" in hex. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1109 > heads 666f726365 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1110 > PUSHFILE ../initial.v1.hg |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1111 > readavailable |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1112 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1113 testing ssh1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1114 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1115 i> write(104) -> 104: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1116 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1117 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1118 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1119 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1120 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1121 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1122 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1123 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
1124 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1125 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1126 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1127 o> readline() -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1128 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1129 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1130 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1131 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1132 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1133 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1134 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1135 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1136 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1137 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1138 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1139 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1140 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1141 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1142 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1143 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1144 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1145 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1146 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1147 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1148 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1149 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1150 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1151 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1152 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1153 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1154 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1155 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1156 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1157 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1158 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1159 e> read(-1) -> 171: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1160 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1161 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1162 e> adding file changes\n |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
1163 e> stdout 1\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1164 e> stderr 1\n |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
1165 e> stdout 2\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1166 e> stderr 2\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1167 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1168 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1169 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1170 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1171 testing ssh2 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1172 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1173 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1174 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1175 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1176 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1177 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1178 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1179 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1180 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1181 o> upgraded * exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1182 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1183 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1184 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1185 o> read(1) -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1186 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1187 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1188 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1189 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1190 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1191 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1192 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1193 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1194 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1195 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1196 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1197 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1198 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1199 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1200 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1201 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1202 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1203 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1204 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1205 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1206 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1207 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1208 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1209 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1210 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1211 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1212 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1213 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1214 o> read(1) -> 1: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1215 result: 0 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1216 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1217 e> read(-1) -> 171: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1218 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1219 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1220 e> adding file changes\n |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
1221 e> stdout 1\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1222 e> stderr 1\n |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
1223 e> stdout 2\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1224 e> stderr 2\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1225 e> transaction abort!\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1226 e> rollback completed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1227 e> abort: pretxnchangegroup.fail hook failed\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1228 |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1229 Shell hook writing to stdout has output captured |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1230 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1231 $ cat > $TESTTMP/hook.sh << EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1232 > echo 'stdout 1' |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1233 > echo 'stdout 2' |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1234 > exit 1 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1235 > EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1236 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1237 $ cat > .hg/hgrc << EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1238 > [hooks] |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1239 > pretxnchangegroup.fail = sh $TESTTMP/hook.sh |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1240 > EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1241 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1242 $ debugwireproto << EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1243 > command unbundle |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1244 > # This is "force" in hex. |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1245 > heads 666f726365 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1246 > PUSHFILE ../initial.v1.hg |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1247 > readavailable |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1248 > EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1249 testing ssh1 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1250 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1251 i> write(104) -> 104: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1252 i> hello\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1253 i> between\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1254 i> pairs 81\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1255 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1256 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1257 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1258 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1259 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
1260 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1261 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1262 o> 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1263 o> readline() -> 1: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1264 o> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1265 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1266 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1267 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1268 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1269 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1270 i> write(10) -> 10: 666f726365 |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1271 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1272 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1273 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1274 i> write(4) -> 4: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1275 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1276 i> write(426) -> 426: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1277 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1278 i> test\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1279 i> 0 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1280 i> foo\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1281 i> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1282 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1283 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1284 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1285 i> write(2) -> 2: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1286 i> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1287 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1288 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1289 o> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1290 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1291 o> 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1292 o> read(1) -> 1: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1293 result: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1294 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1295 e> read(-1) -> 167: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1296 e> adding changesets\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1297 e> adding manifests\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1298 e> adding file changes\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1299 e> stdout 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1300 e> stdout 2\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1301 e> transaction abort!\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1302 e> rollback completed\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1303 e> abort: pretxnchangegroup.fail hook exited with status 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1304 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1305 testing ssh2 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1306 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1307 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1308 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1309 i> hello\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1310 i> between\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1311 i> pairs 81\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1312 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1313 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1314 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1315 o> upgraded * exp-ssh-v2-0003\n (glob) |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1316 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1317 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1318 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1319 o> read(1) -> 1: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1320 o> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1321 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1322 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1323 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1324 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1325 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1326 i> write(10) -> 10: 666f726365 |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1327 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1328 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1329 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1330 i> write(4) -> 4: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1331 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1332 i> write(426) -> 426: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1333 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1334 i> test\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1335 i> 0 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1336 i> foo\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1337 i> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1338 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1339 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1340 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1341 i> write(2) -> 2: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1342 i> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1343 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1344 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1345 o> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1346 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1347 o> 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1348 o> read(1) -> 1: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1349 result: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1350 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1351 e> read(-1) -> 167: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1352 e> adding changesets\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1353 e> adding manifests\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1354 e> adding file changes\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1355 e> stdout 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1356 e> stdout 2\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1357 e> transaction abort!\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1358 e> rollback completed\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1359 e> abort: pretxnchangegroup.fail hook exited with status 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1360 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1361 Shell hook writing to stderr has output captured |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1362 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1363 $ cat > $TESTTMP/hook.sh << EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1364 > echo 'stderr 1' 1>&2 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1365 > echo 'stderr 2' 1>&2 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1366 > exit 1 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1367 > EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1368 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1369 $ debugwireproto << EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1370 > command unbundle |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1371 > # This is "force" in hex. |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1372 > heads 666f726365 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1373 > PUSHFILE ../initial.v1.hg |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1374 > readavailable |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1375 > EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1376 testing ssh1 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1377 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1378 i> write(104) -> 104: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1379 i> hello\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1380 i> between\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1381 i> pairs 81\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1382 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1383 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1384 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1385 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1386 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
1387 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1388 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1389 o> 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1390 o> readline() -> 1: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1391 o> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1392 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1393 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1394 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1395 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1396 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1397 i> write(10) -> 10: 666f726365 |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1398 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1399 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1400 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1401 i> write(4) -> 4: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1402 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1403 i> write(426) -> 426: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1404 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1405 i> test\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1406 i> 0 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1407 i> foo\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1408 i> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1409 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1410 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1411 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1412 i> write(2) -> 2: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1413 i> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1414 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1415 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1416 o> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1417 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1418 o> 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1419 o> read(1) -> 1: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1420 result: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1421 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1422 e> read(-1) -> 167: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1423 e> adding changesets\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1424 e> adding manifests\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1425 e> adding file changes\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1426 e> stderr 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1427 e> stderr 2\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1428 e> transaction abort!\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1429 e> rollback completed\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1430 e> abort: pretxnchangegroup.fail hook exited with status 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1431 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1432 testing ssh2 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1433 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1434 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1435 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1436 i> hello\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1437 i> between\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1438 i> pairs 81\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1439 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1440 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1441 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1442 o> upgraded * exp-ssh-v2-0003\n (glob) |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1443 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1444 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1445 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1446 o> read(1) -> 1: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1447 o> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1448 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1449 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1450 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1451 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1452 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1453 i> write(10) -> 10: 666f726365 |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1454 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1455 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1456 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1457 i> write(4) -> 4: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1458 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1459 i> write(426) -> 426: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1460 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1461 i> test\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1462 i> 0 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1463 i> foo\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1464 i> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1465 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1466 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1467 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1468 i> write(2) -> 2: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1469 i> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1470 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1471 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1472 o> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1473 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1474 o> 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1475 o> read(1) -> 1: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1476 result: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1477 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1478 e> read(-1) -> 167: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1479 e> adding changesets\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1480 e> adding manifests\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1481 e> adding file changes\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1482 e> stderr 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1483 e> stderr 2\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1484 e> transaction abort!\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1485 e> rollback completed\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1486 e> abort: pretxnchangegroup.fail hook exited with status 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1487 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1488 Shell hook writing to stdout and stderr has output captured |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1489 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1490 $ cat > $TESTTMP/hook.sh << EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1491 > echo 'stdout 1' |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1492 > echo 'stderr 1' 1>&2 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1493 > echo 'stdout 2' |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1494 > echo 'stderr 2' 1>&2 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1495 > exit 1 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1496 > EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1497 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1498 $ debugwireproto << EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1499 > command unbundle |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1500 > # This is "force" in hex. |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1501 > heads 666f726365 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1502 > PUSHFILE ../initial.v1.hg |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1503 > readavailable |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1504 > EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1505 testing ssh1 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1506 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1507 i> write(104) -> 104: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1508 i> hello\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1509 i> between\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1510 i> pairs 81\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1511 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1512 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1513 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1514 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1515 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
1516 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1517 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1518 o> 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1519 o> readline() -> 1: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1520 o> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1521 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1522 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1523 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1524 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1525 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1526 i> write(10) -> 10: 666f726365 |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1527 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1528 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1529 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1530 i> write(4) -> 4: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1531 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1532 i> write(426) -> 426: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1533 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1534 i> test\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1535 i> 0 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1536 i> foo\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1537 i> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1538 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1539 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1540 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1541 i> write(2) -> 2: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1542 i> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1543 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1544 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1545 o> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1546 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1547 o> 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1548 o> read(1) -> 1: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1549 result: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1550 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1551 e> read(-1) -> 185: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1552 e> adding changesets\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1553 e> adding manifests\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1554 e> adding file changes\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1555 e> stdout 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1556 e> stderr 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1557 e> stdout 2\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1558 e> stderr 2\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1559 e> transaction abort!\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1560 e> rollback completed\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1561 e> abort: pretxnchangegroup.fail hook exited with status 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1562 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1563 testing ssh2 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1564 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1565 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1566 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1567 i> hello\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1568 i> between\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1569 i> pairs 81\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1570 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1571 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1572 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1573 o> upgraded * exp-ssh-v2-0003\n (glob) |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1574 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1575 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1576 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1577 o> read(1) -> 1: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1578 o> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1579 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1580 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1581 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1582 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1583 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1584 i> write(10) -> 10: 666f726365 |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1585 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1586 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1587 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1588 i> write(4) -> 4: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1589 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1590 i> write(426) -> 426: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1591 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1592 i> test\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1593 i> 0 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1594 i> foo\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1595 i> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1596 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1597 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1598 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1599 i> write(2) -> 2: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1600 i> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1601 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1602 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1603 o> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1604 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1605 o> 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1606 o> read(1) -> 1: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1607 result: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1608 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1609 e> read(-1) -> 185: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1610 e> adding changesets\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1611 e> adding manifests\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1612 e> adding file changes\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1613 e> stdout 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1614 e> stderr 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1615 e> stdout 2\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1616 e> stderr 2\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1617 e> transaction abort!\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1618 e> rollback completed\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1619 e> abort: pretxnchangegroup.fail hook exited with status 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1620 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1621 Shell and Python hooks writing to stdout and stderr have output captured |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1622 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1623 $ cat > $TESTTMP/hook.sh << EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1624 > echo 'shell stdout 1' |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1625 > echo 'shell stderr 1' 1>&2 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1626 > echo 'shell stdout 2' |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1627 > echo 'shell stderr 2' 1>&2 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1628 > exit 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1629 > EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1630 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1631 $ cat > .hg/hgrc << EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1632 > [hooks] |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1633 > pretxnchangegroup.a = sh $TESTTMP/hook.sh |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1634 > pretxnchangegroup.b = python:$TESTTMP/failhook:hookprintstderrandstdout |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1635 > EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1636 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1637 $ debugwireproto << EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1638 > command unbundle |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1639 > # This is "force" in hex. |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1640 > heads 666f726365 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1641 > PUSHFILE ../initial.v1.hg |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1642 > readavailable |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1643 > EOF |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1644 testing ssh1 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1645 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1646 i> write(104) -> 104: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1647 i> hello\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1648 i> between\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1649 i> pairs 81\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1650 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1651 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1652 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1653 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1654 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
1655 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1656 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1657 o> 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1658 o> readline() -> 1: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1659 o> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1660 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1661 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1662 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1663 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1664 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1665 i> write(10) -> 10: 666f726365 |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1666 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1667 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1668 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1669 i> write(4) -> 4: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1670 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1671 i> write(426) -> 426: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1672 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1673 i> test\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1674 i> 0 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1675 i> foo\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1676 i> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1677 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1678 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1679 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1680 i> write(2) -> 2: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1681 i> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1682 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1683 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1684 o> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1685 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1686 o> 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1687 o> read(1) -> 1: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1688 result: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1689 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1690 e> read(-1) -> 228: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1691 e> adding changesets\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1692 e> adding manifests\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1693 e> adding file changes\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1694 e> shell stdout 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1695 e> shell stderr 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1696 e> shell stdout 2\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1697 e> shell stderr 2\n |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
1698 e> stdout 1\n |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1699 e> stderr 1\n |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
1700 e> stdout 2\n |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1701 e> stderr 2\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1702 e> transaction abort!\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1703 e> rollback completed\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1704 e> abort: pretxnchangegroup.b hook failed\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1705 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1706 testing ssh2 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1707 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1708 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1709 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1710 i> hello\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1711 i> between\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1712 i> pairs 81\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1713 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1714 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1715 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1716 o> upgraded * exp-ssh-v2-0003\n (glob) |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1717 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1718 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1719 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1720 o> read(1) -> 1: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1721 o> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1722 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1723 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1724 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1725 i> write(9) -> 9: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1726 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1727 i> write(10) -> 10: 666f726365 |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1728 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1729 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1730 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1731 i> write(4) -> 4: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1732 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1733 i> write(426) -> 426: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1734 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1735 i> test\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1736 i> 0 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1737 i> foo\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1738 i> \n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1739 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1740 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1741 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1742 i> write(2) -> 2: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1743 i> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1744 i> flush() -> None |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1745 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1746 o> 0\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1747 o> readline() -> 2: |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1748 o> 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1749 o> read(1) -> 1: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1750 result: 0 |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1751 remote output: |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1752 e> read(-1) -> 228: |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1753 e> adding changesets\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1754 e> adding manifests\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1755 e> adding file changes\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1756 e> shell stdout 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1757 e> shell stderr 1\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1758 e> shell stdout 2\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1759 e> shell stderr 2\n |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
1760 e> stdout 1\n |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1761 e> stderr 1\n |
37943
45a669bad421
test-ssh: add some flush() to make output deterministic
Yuya Nishihara <yuya@tcha.org>
parents:
37413
diff
changeset
|
1762 e> stdout 2\n |
36614
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1763 e> stderr 2\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1764 e> transaction abort!\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1765 e> rollback completed\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1766 e> abort: pretxnchangegroup.b hook failed\n |
1fa02265fae2
tests: add more tests around hook output and getbundle
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36612
diff
changeset
|
1767 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1768 $ cd .. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1769 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1770 Pushing a bundle1 with no output |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1771 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1772 $ hg init simplerepo |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1773 $ cd simplerepo |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1774 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1775 $ debugwireproto 1 << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1776 > command unbundle |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1777 > # This is "force" in hex. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1778 > heads 666f726365 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1779 > PUSHFILE ../initial.v1.hg |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1780 > readavailable |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1781 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1782 testing ssh1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1783 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1784 i> write(104) -> 104: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1785 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1786 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1787 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1788 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1789 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1790 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1791 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1792 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
1793 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1794 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1795 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1796 o> readline() -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1797 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1798 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1799 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1800 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1801 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1802 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1803 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1804 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1805 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1806 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1807 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1808 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1809 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1810 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1811 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1812 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1813 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1814 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1815 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1816 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1817 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1818 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1819 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1820 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1821 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1822 o> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1823 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1824 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1825 o> read(1) -> 1: 1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1826 result: 1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1827 remote output: |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1828 e> read(-1) -> 100: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1829 e> adding changesets\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1830 e> adding manifests\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1831 e> adding file changes\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1832 e> added 1 changesets with 1 changes to 1 files\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1833 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1834 testing ssh2 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1835 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1836 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1837 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1838 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1839 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1840 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1841 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1842 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1843 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1844 o> upgraded * exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1845 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1846 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1847 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1848 o> read(1) -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1849 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1850 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1851 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1852 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1853 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1854 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1855 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1856 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1857 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1858 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1859 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1860 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1861 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1862 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1863 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1864 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1865 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1866 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1867 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1868 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1869 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1870 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1871 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1872 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1873 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1874 o> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1875 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1876 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1877 o> read(1) -> 1: 1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1878 result: 1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1879 remote output: |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1880 e> read(-1) -> 100: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1881 e> adding changesets\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1882 e> adding manifests\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1883 e> adding file changes\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1884 e> added 1 changesets with 1 changes to 1 files\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1885 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1886 $ cd .. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1887 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1888 Pushing a bundle1 with ui.write() and ui.write_err() |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1889 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1890 $ cat > $TESTTMP/hook << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1891 > def hookuiwrite(ui, repo, **kwargs): |
36660
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
1892 > ui.write(b'ui.write 1\n') |
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
1893 > ui.write_err(b'ui.write_err 1\n') |
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
1894 > ui.write(b'ui.write 2\n') |
11b279a75bf1
tests: fix inline extension bytes in test-ssh-proto-unbundle.t
Augie Fackler <augie@google.com>
parents:
36631
diff
changeset
|
1895 > ui.write_err(b'ui.write_err 2\n') |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1896 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1897 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1898 $ hg init uiwriterepo |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1899 $ cd uiwriterepo |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1900 $ cat > .hg/hgrc << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1901 > [hooks] |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1902 > pretxnchangegroup.hook = python:$TESTTMP/hook:hookuiwrite |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1903 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1904 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1905 $ debugwireproto 1 << EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1906 > command unbundle |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1907 > # This is "force" in hex. |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1908 > heads 666f726365 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1909 > PUSHFILE ../initial.v1.hg |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1910 > readavailable |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1911 > EOF |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1912 testing ssh1 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1913 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1914 i> write(104) -> 104: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1915 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1916 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1917 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1918 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1919 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1920 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1921 o> 444\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1922 o> readline() -> 444: |
40910
4bb6195755b1
test: enable sparse-revlog for test-ssh-proto-unbundle.t
Boris Feld <boris.feld@octobus.net>
parents:
40176
diff
changeset
|
1923 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1924 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1925 o> 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1926 o> readline() -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1927 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1928 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1929 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1930 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1931 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1932 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1933 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1934 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1935 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1936 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1937 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1938 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1939 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1940 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1941 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1942 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1943 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1944 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1945 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1946 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1947 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1948 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1949 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1950 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1951 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1952 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1953 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1954 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1955 o> read(1) -> 1: 1 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1956 result: 1 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
1957 remote output: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1958 e> read(-1) -> 152: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1959 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1960 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1961 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1962 e> ui.write 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1963 e> ui.write_err 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1964 e> ui.write 2\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1965 e> ui.write_err 2\n |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
1966 e> added 1 changesets with 1 changes to 1 files\n |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1967 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1968 testing ssh2 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1969 creating ssh peer from handshake results |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1970 i> write(171) -> 171: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1971 i> upgrade * proto=exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1972 i> hello\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1973 i> between\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1974 i> pairs 81\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1975 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1976 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1977 o> readline() -> 62: |
40176
41263df08109
wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39814
diff
changeset
|
1978 o> upgraded * exp-ssh-v2-0003\n (glob) |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1979 o> readline() -> 4: |
46633
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1980 o> 443\n |
7015b0232c5e
exchange: stop advertising rev-branch-cache bundle capability
Joerg Sonnenberger <joerg@bec.de>
parents:
44412
diff
changeset
|
1981 o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1982 o> read(1) -> 1: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1983 o> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1984 sending unbundle command |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1985 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1986 i> unbundle\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1987 i> write(9) -> 9: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1988 i> heads 10\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1989 i> write(10) -> 10: 666f726365 |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1990 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1991 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1992 o> 0\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1993 i> write(4) -> 4: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1994 i> 426\n |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
1995 i> write(426) -> 426: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1996 i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1997 i> test\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1998 i> 0 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1999 i> foo\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2000 i> \n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2001 i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2002 i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2003 i> \x00\x00\x00\x00\x00\x00\x00\x00 |
36631
8395fddde46c
util: report integer result from write()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36628
diff
changeset
|
2004 i> write(2) -> 2: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2005 i> 0\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2006 i> flush() -> None |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2007 o> readline() -> 2: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2008 o> 0\n |
36608
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
2009 o> readline() -> 2: |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
2010 o> 1\n |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
2011 o> read(1) -> 1: 1 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
2012 result: 1 |
1151c731686e
sshpeer: don't read from stderr when that behavior is disabled
Gregory Szorc <gregory.szorc@gmail.com>
parents:
36534
diff
changeset
|
2013 remote output: |
36534
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2014 e> read(-1) -> 152: |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2015 e> adding changesets\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2016 e> adding manifests\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2017 e> adding file changes\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2018 e> ui.write 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2019 e> ui.write_err 1\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2020 e> ui.write 2\n |
5faeabb07cf5
debugcommands: support for triggering push protocol
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2021 e> ui.write_err 2\n |
42897
d7304434390f
changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40919
diff
changeset
|
2022 e> added 1 changesets with 1 changes to 1 files\n |