equal
deleted
inserted
replaced
1 $ . $TESTDIR/wireprotohelpers.sh |
|
2 |
|
3 $ hg init server |
|
4 $ enablehttpv2 server |
|
5 $ cd server |
|
6 $ cat >> .hg/hgrc << EOF |
|
7 > [web] |
|
8 > push_ssl = false |
|
9 > allow-push = * |
|
10 > EOF |
|
11 $ hg debugdrawdag << EOF |
|
12 > C D |
|
13 > |/ |
|
14 > B |
|
15 > | |
|
16 > A |
|
17 > EOF |
|
18 |
|
19 $ hg serve -p $HGPORT -d --pid-file hg.pid -E error.log |
|
20 $ cat hg.pid > $DAEMON_PIDS |
|
21 |
|
22 pushkey for a bookmark works |
|
23 |
|
24 $ sendhttpv2peer << EOF |
|
25 > command pushkey |
|
26 > namespace bookmarks |
|
27 > key @ |
|
28 > old |
|
29 > new 426bada5c67598ca65036d57d9e4b64b0c1ce7a0 |
|
30 > EOF |
|
31 creating http peer for wire protocol version 2 |
|
32 sending pushkey command |
|
33 response: True |
|
34 |
|
35 $ sendhttpv2peer << EOF |
|
36 > command listkeys |
|
37 > namespace bookmarks |
|
38 > EOF |
|
39 creating http peer for wire protocol version 2 |
|
40 sending listkeys command |
|
41 response: { |
|
42 b'@': b'426bada5c67598ca65036d57d9e4b64b0c1ce7a0' |
|
43 } |
|
44 |
|
45 $ cat error.log |
|