42 $ sendhttpv2peer << EOF |
42 $ sendhttpv2peer << EOF |
43 > command changesetdata |
43 > command changesetdata |
44 > EOF |
44 > EOF |
45 creating http peer for wire protocol version 2 |
45 creating http peer for wire protocol version 2 |
46 sending changesetdata command |
46 sending changesetdata command |
47 abort: missing required arguments: revisions! |
47 abort: missing required arguments: revisions |
48 [255] |
48 [255] |
49 |
49 |
50 Missing nodes for changesetexplicit results in error |
50 Missing nodes for changesetexplicit results in error |
51 |
51 |
52 $ sendhttpv2peer << EOF |
52 $ sendhttpv2peer << EOF |
53 > command changesetdata |
53 > command changesetdata |
54 > revisions eval:[{b'type': b'changesetexplicit'}] |
54 > revisions eval:[{b'type': b'changesetexplicit'}] |
55 > EOF |
55 > EOF |
56 creating http peer for wire protocol version 2 |
56 creating http peer for wire protocol version 2 |
57 sending changesetdata command |
57 sending changesetdata command |
58 abort: nodes key not present in changesetexplicit revision specifier! |
58 abort: nodes key not present in changesetexplicit revision specifier |
59 [255] |
59 [255] |
60 |
60 |
61 changesetexplicitdepth requires nodes and depth keys |
61 changesetexplicitdepth requires nodes and depth keys |
62 |
62 |
63 $ sendhttpv2peer << EOF |
63 $ sendhttpv2peer << EOF |
64 > command changesetdata |
64 > command changesetdata |
65 > revisions eval:[{b'type': b'changesetexplicitdepth'}] |
65 > revisions eval:[{b'type': b'changesetexplicitdepth'}] |
66 > EOF |
66 > EOF |
67 creating http peer for wire protocol version 2 |
67 creating http peer for wire protocol version 2 |
68 sending changesetdata command |
68 sending changesetdata command |
69 abort: nodes key not present in changesetexplicitdepth revision specifier! |
69 abort: nodes key not present in changesetexplicitdepth revision specifier |
70 [255] |
70 [255] |
71 |
71 |
72 $ sendhttpv2peer << EOF |
72 $ sendhttpv2peer << EOF |
73 > command changesetdata |
73 > command changesetdata |
74 > revisions eval:[{b'type': b'changesetexplicitdepth', b'nodes': []}] |
74 > revisions eval:[{b'type': b'changesetexplicitdepth', b'nodes': []}] |
75 > EOF |
75 > EOF |
76 creating http peer for wire protocol version 2 |
76 creating http peer for wire protocol version 2 |
77 sending changesetdata command |
77 sending changesetdata command |
78 abort: depth key not present in changesetexplicitdepth revision specifier! |
78 abort: depth key not present in changesetexplicitdepth revision specifier |
79 [255] |
79 [255] |
80 |
80 |
81 $ sendhttpv2peer << EOF |
81 $ sendhttpv2peer << EOF |
82 > command changesetdata |
82 > command changesetdata |
83 > revisions eval:[{b'type': b'changesetexplicitdepth', b'depth': 42}] |
83 > revisions eval:[{b'type': b'changesetexplicitdepth', b'depth': 42}] |
84 > EOF |
84 > EOF |
85 creating http peer for wire protocol version 2 |
85 creating http peer for wire protocol version 2 |
86 sending changesetdata command |
86 sending changesetdata command |
87 abort: nodes key not present in changesetexplicitdepth revision specifier! |
87 abort: nodes key not present in changesetexplicitdepth revision specifier |
88 [255] |
88 [255] |
89 |
89 |
90 changesetdagrange requires roots and heads keys |
90 changesetdagrange requires roots and heads keys |
91 |
91 |
92 $ sendhttpv2peer << EOF |
92 $ sendhttpv2peer << EOF |
93 > command changesetdata |
93 > command changesetdata |
94 > revisions eval:[{b'type': b'changesetdagrange'}] |
94 > revisions eval:[{b'type': b'changesetdagrange'}] |
95 > EOF |
95 > EOF |
96 creating http peer for wire protocol version 2 |
96 creating http peer for wire protocol version 2 |
97 sending changesetdata command |
97 sending changesetdata command |
98 abort: roots key not present in changesetdagrange revision specifier! |
98 abort: roots key not present in changesetdagrange revision specifier |
99 [255] |
99 [255] |
100 |
100 |
101 $ sendhttpv2peer << EOF |
101 $ sendhttpv2peer << EOF |
102 > command changesetdata |
102 > command changesetdata |
103 > revisions eval:[{b'type': b'changesetdagrange', b'roots': []}] |
103 > revisions eval:[{b'type': b'changesetdagrange', b'roots': []}] |
104 > EOF |
104 > EOF |
105 creating http peer for wire protocol version 2 |
105 creating http peer for wire protocol version 2 |
106 sending changesetdata command |
106 sending changesetdata command |
107 abort: heads key not present in changesetdagrange revision specifier! |
107 abort: heads key not present in changesetdagrange revision specifier |
108 [255] |
108 [255] |
109 |
109 |
110 $ sendhttpv2peer << EOF |
110 $ sendhttpv2peer << EOF |
111 > command changesetdata |
111 > command changesetdata |
112 > revisions eval:[{b'type': b'changesetdagrange', b'heads': [b'dummy']}] |
112 > revisions eval:[{b'type': b'changesetdagrange', b'heads': [b'dummy']}] |
113 > EOF |
113 > EOF |
114 creating http peer for wire protocol version 2 |
114 creating http peer for wire protocol version 2 |
115 sending changesetdata command |
115 sending changesetdata command |
116 abort: roots key not present in changesetdagrange revision specifier! |
116 abort: roots key not present in changesetdagrange revision specifier |
117 [255] |
117 [255] |
118 |
118 |
119 Empty changesetdagrange heads results in an error |
119 Empty changesetdagrange heads results in an error |
120 |
120 |
121 $ sendhttpv2peer << EOF |
121 $ sendhttpv2peer << EOF |
122 > command changesetdata |
122 > command changesetdata |
123 > revisions eval:[{b'type': b'changesetdagrange', b'heads': [], b'roots': []}] |
123 > revisions eval:[{b'type': b'changesetdagrange', b'heads': [], b'roots': []}] |
124 > EOF |
124 > EOF |
125 creating http peer for wire protocol version 2 |
125 creating http peer for wire protocol version 2 |
126 sending changesetdata command |
126 sending changesetdata command |
127 abort: heads key in changesetdagrange cannot be empty! |
127 abort: heads key in changesetdagrange cannot be empty |
128 [255] |
128 [255] |
129 |
129 |
130 Sending just dagrange heads sends all revisions |
130 Sending just dagrange heads sends all revisions |
131 |
131 |
132 $ sendhttpv2peer << EOF |
132 $ sendhttpv2peer << EOF |