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