##// END OF EJS Templates
changegroup: move message about added changes to transaction summary...
changegroup: move message about added changes to transaction summary Before that, applying multiple changegroups in the same transaction issued the message multiple time. This result in a confusing output: adding changesets adding manifests adding file changes added 32768 changesets with 60829 changes to 2668 files adding changesets adding manifests adding file changes added 8192 changesets with 16885 changes to 1553 files adding changesets adding manifests adding file changes added 1020 changesets with 1799 changes to 536 files adding changesets adding manifests ... Instead, we now only issue the message once at the end of the transaction, summing up all added changesets, changes and files. The line is identical, but happens sightly later in the output. There are other suboptimal behavior around issue multiple changegroup (eg: progress bar). We'll cover them later. This impact of lot of test as one would expect, but a two pass check show they are just the order change we expected. To deal with "under the hood" bundle application by internal code, we had to take a slightly hacky move. We could clean that up with a more official way to enter "under the hood" section, however I want to keep this series simple to get it landed. This kind of change have a very high bit rot rate since it impact a lot of test output.

File last commit:

r43167:d7304434 default
r43167:d7304434 default
Show More
test-ssh-proto-unbundle.t
2022 lines | 84.2 KiB | text/troff | Tads3Lexer
/ tests / test-ssh-proto-unbundle.t
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 $ cat > hgrc-sshv2 << EOF
> %include $HGRCPATH
> [experimental]
> sshpeer.advertise-v2 = true
> sshserver.support-v2 = true
> EOF
$ debugwireproto() {
> commands=`cat -`
> echo 'testing ssh1'
> tip=`hg log -r tip -T '{node}'`
> echo "${commands}" | hg --verbose debugwireproto --localssh --noreadstderr
> if [ -n "$1" ]; then
> hg --config extensions.strip= strip --no-backup -r "all() - ::${tip}"
> fi
> echo ""
> echo 'testing ssh2'
> echo "${commands}" | HGRCPATH=$TESTTMP/hgrc-sshv2 hg --verbose debugwireproto --localssh --noreadstderr
> if [ -n "$1" ]; then
> hg --config extensions.strip= strip --no-backup -r "all() - ::${tip}"
> fi
> }
Generate some bundle files
$ hg init repo
$ cd repo
$ echo 0 > foo
$ hg -q commit -A -m initial
$ hg bundle --all -t none-v1 ../initial.v1.hg
1 changesets found
$ cd ..
Test pushing bundle1 payload to a server with bundle1 disabled
$ hg init no-bundle1
$ cd no-bundle1
$ cat > .hg/hgrc << EOF
> [server]
> bundle1 = false
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 > readavailable
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 e> read(-1) -> 115:
e> abort: incompatible Mercurial client; bundle2 required\n
e> (see https://www.mercurial-scm.org/wiki/IncompatibleClient)\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 e> read(-1) -> 115:
e> abort: incompatible Mercurial client; bundle2 required\n
e> (see https://www.mercurial-scm.org/wiki/IncompatibleClient)\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551
$ cd ..
Create a pretxnchangegroup hook that fails. Give it multiple modes of printing
output so we can test I/O capture and behavior.
Test pushing to a server that has a pretxnchangegroup Python hook that fails
$ cat > $TESTTMP/failhook << EOF
> from __future__ import print_function
> import sys
> def hook1line(ui, repo, **kwargs):
Augie Fackler
tests: fix inline extension bytes in test-ssh-proto-unbundle.t...
r36678 > ui.write(b'ui.write 1 line\n')
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 > ui.flush()
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > return 1
> def hook2lines(ui, repo, **kwargs):
Augie Fackler
tests: fix inline extension bytes in test-ssh-proto-unbundle.t...
r36678 > ui.write(b'ui.write 2 lines 1\n')
> ui.write(b'ui.write 2 lines 2\n')
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 > ui.flush()
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > return 1
> def hook1lineflush(ui, repo, **kwargs):
Augie Fackler
tests: fix inline extension bytes in test-ssh-proto-unbundle.t...
r36678 > ui.write(b'ui.write 1 line flush\n')
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > ui.flush()
> return 1
> def hookmultiflush(ui, repo, **kwargs):
Augie Fackler
tests: fix inline extension bytes in test-ssh-proto-unbundle.t...
r36678 > ui.write(b'ui.write 1st\n')
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > ui.flush()
Augie Fackler
tests: fix inline extension bytes in test-ssh-proto-unbundle.t...
r36678 > ui.write(b'ui.write 2nd\n')
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > ui.flush()
> return 1
> def hookwriteandwriteerr(ui, repo, **kwargs):
Augie Fackler
tests: fix inline extension bytes in test-ssh-proto-unbundle.t...
r36678 > ui.write(b'ui.write 1\n')
> ui.write_err(b'ui.write_err 1\n')
> ui.write(b'ui.write 2\n')
> ui.write_err(b'ui.write_err 2\n')
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 > ui.flush()
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > return 1
> def hookprintstdout(ui, repo, **kwargs):
> print('printed line')
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 > sys.stdout.flush()
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > return 1
> def hookprintandwrite(ui, repo, **kwargs):
> print('print 1')
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 > sys.stdout.flush()
Augie Fackler
tests: fix inline extension bytes in test-ssh-proto-unbundle.t...
r36678 > ui.write(b'ui.write 1\n')
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 > ui.flush()
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > print('print 2')
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 > sys.stdout.flush()
Augie Fackler
tests: fix inline extension bytes in test-ssh-proto-unbundle.t...
r36678 > ui.write(b'ui.write 2\n')
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 > ui.flush()
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > return 1
> def hookprintstderrandstdout(ui, repo, **kwargs):
> print('stdout 1')
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 > sys.stdout.flush()
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > print('stderr 1', file=sys.stderr)
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 > sys.stderr.flush()
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > print('stdout 2')
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 > sys.stdout.flush()
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > print('stderr 2', file=sys.stderr)
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 > sys.stderr.flush()
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > return 1
> EOF
$ hg init failrepo
$ cd failrepo
ui.write() in hook is redirected to stderr
$ cat > .hg/hgrc << EOF
> [hooks]
> pretxnchangegroup.fail = python:$TESTTMP/failhook:hook1line
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 > readavailable
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 151:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> ui.write 1 line\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 151:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> ui.write 1 line\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
And a variation that writes multiple lines using ui.write
$ cat > .hg/hgrc << EOF
> [hooks]
> pretxnchangegroup.fail = python:$TESTTMP/failhook:hook2lines
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 > readavailable
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 173:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> ui.write 2 lines 1\n
e> ui.write 2 lines 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 173:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> ui.write 2 lines 1\n
e> ui.write 2 lines 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
And a variation that does a ui.flush() after writing output
$ cat > .hg/hgrc << EOF
> [hooks]
> pretxnchangegroup.fail = python:$TESTTMP/failhook:hook1lineflush
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 > readavailable
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 157:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> ui.write 1 line flush\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 157:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> ui.write 1 line flush\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
Multiple writes + flush
$ cat > .hg/hgrc << EOF
> [hooks]
> pretxnchangegroup.fail = python:$TESTTMP/failhook:hookmultiflush
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 > readavailable
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 161:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> ui.write 1st\n
e> ui.write 2nd\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 161:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> ui.write 1st\n
e> ui.write 2nd\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
ui.write() + ui.write_err() output is captured
$ cat > .hg/hgrc << EOF
> [hooks]
> pretxnchangegroup.fail = python:$TESTTMP/failhook:hookwriteandwriteerr
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 > readavailable
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 187:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> ui.write 1\n
e> ui.write_err 1\n
e> ui.write 2\n
e> ui.write_err 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 187:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> ui.write 1\n
e> ui.write_err 1\n
e> ui.write 2\n
e> ui.write_err 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
print() output is captured
$ cat > .hg/hgrc << EOF
> [hooks]
> pretxnchangegroup.fail = python:$TESTTMP/failhook:hookprintstdout
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 > readavailable
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 148:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> printed line\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 148:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> printed line\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
Mixed print() and ui.write() are both captured
$ cat > .hg/hgrc << EOF
> [hooks]
> pretxnchangegroup.fail = python:$TESTTMP/failhook:hookprintandwrite
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 > readavailable
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 173:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 e> print 1\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> ui.write 1\n
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 e> print 2\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> ui.write 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 173:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 e> print 1\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> ui.write 1\n
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 e> print 2\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> ui.write 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
print() to stdout and stderr both get captured
$ cat > .hg/hgrc << EOF
> [hooks]
> pretxnchangegroup.fail = python:$TESTTMP/failhook:hookprintstderrandstdout
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 > readavailable
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 171:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 e> stdout 1\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> stderr 1\n
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 e> stdout 2\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> stderr 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 171:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 e> stdout 1\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> stderr 1\n
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 e> stdout 2\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> stderr 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook failed\n
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 Shell hook writing to stdout has output captured
$ cat > $TESTTMP/hook.sh << EOF
> echo 'stdout 1'
> echo 'stdout 2'
> exit 1
> EOF
$ cat > .hg/hgrc << EOF
> [hooks]
> pretxnchangegroup.fail = sh $TESTTMP/hook.sh
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
> readavailable
> EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 167:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> stdout 1\n
e> stdout 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook exited with status 1\n
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 167:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> stdout 1\n
e> stdout 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook exited with status 1\n
Shell hook writing to stderr has output captured
$ cat > $TESTTMP/hook.sh << EOF
> echo 'stderr 1' 1>&2
> echo 'stderr 2' 1>&2
> exit 1
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
> readavailable
> EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 167:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> stderr 1\n
e> stderr 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook exited with status 1\n
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 167:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> stderr 1\n
e> stderr 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook exited with status 1\n
Shell hook writing to stdout and stderr has output captured
$ cat > $TESTTMP/hook.sh << EOF
> echo 'stdout 1'
> echo 'stderr 1' 1>&2
> echo 'stdout 2'
> echo 'stderr 2' 1>&2
> exit 1
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
> readavailable
> EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 185:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> stdout 1\n
e> stderr 1\n
e> stdout 2\n
e> stderr 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook exited with status 1\n
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 185:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> stdout 1\n
e> stderr 1\n
e> stdout 2\n
e> stderr 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.fail hook exited with status 1\n
Shell and Python hooks writing to stdout and stderr have output captured
$ cat > $TESTTMP/hook.sh << EOF
> echo 'shell stdout 1'
> echo 'shell stderr 1' 1>&2
> echo 'shell stdout 2'
> echo 'shell stderr 2' 1>&2
> exit 0
> EOF
$ cat > .hg/hgrc << EOF
> [hooks]
> pretxnchangegroup.a = sh $TESTTMP/hook.sh
> pretxnchangegroup.b = python:$TESTTMP/failhook:hookprintstderrandstdout
> EOF
$ debugwireproto << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
> readavailable
> EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 228:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> shell stdout 1\n
e> shell stderr 1\n
e> shell stdout 2\n
e> shell stderr 2\n
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 e> stdout 1\n
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 e> stderr 1\n
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 e> stdout 2\n
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 e> stderr 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.b hook failed\n
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 0
result: 0
remote output:
changegroup: move message about added changes to transaction summary...
r43167 e> read(-1) -> 228:
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> shell stdout 1\n
e> shell stderr 1\n
e> shell stdout 2\n
e> shell stderr 2\n
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 e> stdout 1\n
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 e> stderr 1\n
Yuya Nishihara
test-ssh: add some flush() to make output deterministic...
r37962 e> stdout 2\n
Gregory Szorc
tests: add more tests around hook output and getbundle...
r36632 e> stderr 2\n
e> transaction abort!\n
e> rollback completed\n
e> abort: pretxnchangegroup.b hook failed\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 $ cd ..
Pushing a bundle1 with no output
$ hg init simplerepo
$ cd simplerepo
$ debugwireproto 1 << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 > readavailable
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 1
result: 1
remote output:
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 e> read(-1) -> 100:
e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> added 1 changesets with 1 changes to 1 files\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 1
result: 1
remote output:
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 e> read(-1) -> 100:
e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> added 1 changesets with 1 changes to 1 files\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551
$ cd ..
Pushing a bundle1 with ui.write() and ui.write_err()
$ cat > $TESTTMP/hook << EOF
> def hookuiwrite(ui, repo, **kwargs):
Augie Fackler
tests: fix inline extension bytes in test-ssh-proto-unbundle.t...
r36678 > ui.write(b'ui.write 1\n')
> ui.write_err(b'ui.write_err 1\n')
> ui.write(b'ui.write 2\n')
> ui.write_err(b'ui.write_err 2\n')
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > EOF
$ hg init uiwriterepo
$ cd uiwriterepo
$ cat > .hg/hgrc << EOF
> [hooks]
> pretxnchangegroup.hook = python:$TESTTMP/hook:hookuiwrite
> EOF
$ debugwireproto 1 << EOF
> command unbundle
> # This is "force" in hex.
> heads 666f726365
> PUSHFILE ../initial.v1.hg
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 > readavailable
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 > EOF
testing ssh1
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(104) -> 104:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 440\n
o> readline() -> 440:
o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 2:
o> 1\n
o> readline() -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 1
result: 1
remote output:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> read(-1) -> 152:
e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> ui.write 1\n
e> ui.write_err 1\n
e> ui.write 2\n
e> ui.write_err 2\n
changegroup: move message about added changes to transaction summary...
r43167 e> added 1 changesets with 1 changes to 1 files\n
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551
testing ssh2
creating ssh peer from handshake results
Gregory Szorc
util: report integer result from write()...
r36649 i> write(171) -> 171:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 i> upgrade * proto=exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> hello\n
i> between\n
i> pairs 81\n
i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
i> flush() -> None
o> readline() -> 62:
Gregory Szorc
wireprotov2: change how revisions are specified to changesetdata...
r40212 o> upgraded * exp-ssh-v2-0003\n (glob)
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> readline() -> 4:
Boris Feld
test: enable sparse-revlog for test-ssh-proto-unbundle.t...
r40946 o> 439\n
o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 o> read(1) -> 1:
o> \n
sending unbundle command
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> unbundle\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(9) -> 9:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> heads 10\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(10) -> 10: 666f726365
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(4) -> 4:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 426\n
Gregory Szorc
util: report integer result from write()...
r36649 i> write(426) -> 426:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 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
i> test\n
i> 0 0\n
i> foo\n
i> \n
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
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
i> \x00\x00\x00\x00\x00\x00\x00\x00
Gregory Szorc
util: report integer result from write()...
r36649 i> write(2) -> 2:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 i> 0\n
i> flush() -> None
o> readline() -> 2:
o> 0\n
Gregory Szorc
sshpeer: don't read from stderr when that behavior is disabled...
r36626 o> readline() -> 2:
o> 1\n
o> read(1) -> 1: 1
result: 1
remote output:
Gregory Szorc
debugcommands: support for triggering push protocol...
r36551 e> read(-1) -> 152:
e> adding changesets\n
e> adding manifests\n
e> adding file changes\n
e> ui.write 1\n
e> ui.write_err 1\n
e> ui.write 2\n
e> ui.write_err 2\n
changegroup: move message about added changes to transaction summary...
r43167 e> added 1 changesets with 1 changes to 1 files\n