##// END OF EJS Templates
errors: name arguments to UnknownCommand constructor...
errors: name arguments to UnknownCommand constructor Differential Revision: https://phab.mercurial-scm.org/D9166

File last commit:

r45669:b1507ab0 default
r46272:bb1a988e default
Show More
test-wireproto-command-lookup.t
33 lines | 650 B | text/troff | Tads3Lexer
/ tests / test-wireproto-command-lookup.t
Gregory Szorc
wireproto: port lookup to wire protocol v2...
r37556 $ . $TESTDIR/wireprotohelpers.sh
$ hg init server
$ enablehttpv2 server
$ cd server
$ cat >> .hg/hgrc << EOF
> [web]
> push_ssl = false
> allow-push = *
> EOF
$ hg debugdrawdag << EOF
> C D
> |/
> B
> |
> A
> EOF
Martin von Zweigbergk
tests: avoid a "magic" nodeid in test-wireproto-command-lookup.t...
r45669 $ root_node=$(hg log -r A -T '{node}')
Gregory Szorc
wireproto: port lookup to wire protocol v2...
r37556
$ hg serve -p $HGPORT -d --pid-file hg.pid -E error.log
$ cat hg.pid > $DAEMON_PIDS
lookup for known node works
$ sendhttpv2peer << EOF
> command lookup
Martin von Zweigbergk
tests: avoid a "magic" nodeid in test-wireproto-command-lookup.t...
r45669 > key $root_node
Gregory Szorc
wireproto: port lookup to wire protocol v2...
r37556 > EOF
creating http peer for wire protocol version 2
sending lookup command
Gregory Szorc
wireprotov2: decode responses to their expected types...
r37739 response: b'Bk\xad\xa5\xc6u\x98\xcae\x03mW\xd9\xe4\xb6K\x0c\x1c\xe7\xa0'
Gregory Szorc
wireproto: port lookup to wire protocol v2...
r37556
$ cat error.log