equal
deleted
inserted
replaced
1 $ . $TESTDIR/wireprotohelpers.sh |
|
2 |
|
3 $ hg init server |
|
4 $ enablehttpv2 server |
|
5 $ cd server |
|
6 $ hg debugdrawdag << EOF |
|
7 > C D |
|
8 > |/ |
|
9 > B |
|
10 > | |
|
11 > A |
|
12 > EOF |
|
13 |
|
14 $ hg phase --public -r C |
|
15 $ hg book -r C @ |
|
16 |
|
17 $ hg log -T '{rev}:{node} {desc}\n' |
|
18 3:be0ef73c17ade3fc89dc41701eb9fc3a91b58282 D |
|
19 2:26805aba1e600a82e93661149f2313866a221a7b C |
|
20 1:112478962961147124edd43549aedd1a335e44bf B |
|
21 0:426bada5c67598ca65036d57d9e4b64b0c1ce7a0 A |
|
22 |
|
23 $ hg serve -p $HGPORT -d --pid-file hg.pid -E error.log |
|
24 $ cat hg.pid > $DAEMON_PIDS |
|
25 |
|
26 Request for namespaces works |
|
27 |
|
28 $ sendhttpv2peer << EOF |
|
29 > command listkeys |
|
30 > namespace namespaces |
|
31 > EOF |
|
32 creating http peer for wire protocol version 2 |
|
33 sending listkeys command |
|
34 response: { |
|
35 b'bookmarks': b'', |
|
36 b'namespaces': b'', |
|
37 b'phases': b'' |
|
38 } |
|
39 |
|
40 Request for phases works |
|
41 |
|
42 $ sendhttpv2peer << EOF |
|
43 > command listkeys |
|
44 > namespace phases |
|
45 > EOF |
|
46 creating http peer for wire protocol version 2 |
|
47 sending listkeys command |
|
48 response: { |
|
49 b'be0ef73c17ade3fc89dc41701eb9fc3a91b58282': b'1', |
|
50 b'publishing': b'True' |
|
51 } |
|
52 |
|
53 Request for bookmarks works |
|
54 |
|
55 $ sendhttpv2peer << EOF |
|
56 > command listkeys |
|
57 > namespace bookmarks |
|
58 > EOF |
|
59 creating http peer for wire protocol version 2 |
|
60 sending listkeys command |
|
61 response: { |
|
62 b'@': b'26805aba1e600a82e93661149f2313866a221a7b' |
|
63 } |
|
64 |
|
65 $ cat error.log |
|