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