Show More
@@ -1,568 +1,569 | |||
|
1 | 1 | #require sqlite |
|
2 | 2 | |
|
3 | 3 | Tests for wire protocol version 2 exchange. |
|
4 | 4 | Tests in this file should be folded into existing tests once protocol |
|
5 | 5 | v2 has enough features that it can be enabled via #testcase in existing |
|
6 | 6 | tests. |
|
7 | 7 | |
|
8 | 8 | $ . $TESTDIR/wireprotohelpers.sh |
|
9 | 9 | $ enablehttpv2client |
|
10 | 10 | $ cat >> $HGRCPATH << EOF |
|
11 | 11 | > [extensions] |
|
12 | 12 | > sqlitestore = |
|
13 | 13 | > pullext = $TESTDIR/pullext.py |
|
14 | 14 | > [storage] |
|
15 | 15 | > new-repo-backend=sqlite |
|
16 | 16 | > EOF |
|
17 | 17 | |
|
18 | 18 | Configure a server |
|
19 | 19 | |
|
20 | 20 | $ hg init server-basic |
|
21 | 21 | $ enablehttpv2 server-basic |
|
22 | 22 | $ cd server-basic |
|
23 | 23 | $ mkdir dir0 dir1 |
|
24 | 24 | $ echo a0 > a |
|
25 | 25 | $ echo b0 > b |
|
26 | 26 | $ hg -q commit -A -m 'commit 0' |
|
27 | 27 | $ echo c0 > dir0/c |
|
28 | 28 | $ echo d0 > dir0/d |
|
29 | 29 | $ hg -q commit -A -m 'commit 1' |
|
30 | 30 | $ echo e0 > dir1/e |
|
31 | 31 | $ echo f0 > dir1/f |
|
32 | 32 | $ hg -q commit -A -m 'commit 2' |
|
33 | 33 | $ echo c1 > dir0/c |
|
34 | 34 | $ echo e1 > dir1/e |
|
35 | 35 | $ hg commit -m 'commit 3' |
|
36 | 36 | $ echo c2 > dir0/c |
|
37 | 37 | $ echo e2 > dir1/e |
|
38 | 38 | $ echo f1 > dir1/f |
|
39 | 39 | $ hg commit -m 'commit 4' |
|
40 | 40 | $ echo a1 > a |
|
41 | 41 | $ echo b1 > b |
|
42 | 42 | $ hg commit -m 'commit 5' |
|
43 | 43 | |
|
44 | 44 | $ hg log -G -T '{node} {desc}' |
|
45 | 45 | @ 93a8bd067ed2840d9aa810ad598168383a3a2c3a commit 5 |
|
46 | 46 | | |
|
47 | 47 | o dc666cf9ecf3d94e6b830f30e5f1272e2a9164d9 commit 4 |
|
48 | 48 | | |
|
49 | 49 | o 97765fc3cd624fd1fa0176932c21ffd16adf432e commit 3 |
|
50 | 50 | | |
|
51 | 51 | o 47fe012ab237a8c7fc0c78f9f26d5866eef3f825 commit 2 |
|
52 | 52 | | |
|
53 | 53 | o b709380892b193c1091d3a817f706052e346821b commit 1 |
|
54 | 54 | | |
|
55 | 55 | o 3390ef850073fbc2f0dfff2244342c8e9229013a commit 0 |
|
56 | 56 | |
|
57 | 57 | $ hg serve -p $HGPORT -d --pid-file hg.pid -E error.log |
|
58 | 58 | $ cat hg.pid > $DAEMON_PIDS |
|
59 | 59 | |
|
60 | 60 | $ cd .. |
|
61 | 61 | |
|
62 | 62 | Shallow clone pulls down latest revision of every file |
|
63 | 63 | |
|
64 | 64 | $ hg --debug clone --depth 1 http://localhost:$HGPORT client-shallow-1 |
|
65 | 65 | using http://localhost:$HGPORT/ |
|
66 | 66 | sending capabilities command |
|
67 | 67 | query 1; heads |
|
68 | 68 | sending 2 commands |
|
69 | 69 | sending command heads: {} |
|
70 | 70 | sending command known: { |
|
71 | 71 | 'nodes': [] |
|
72 | 72 | } |
|
73 | 73 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
74 | 74 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
75 | 75 | received frame(size=22; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
76 | 76 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
77 | 77 | received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
78 | 78 | received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
79 | 79 | received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos) |
|
80 | 80 | sending 1 commands |
|
81 | 81 | sending command changesetdata: { |
|
82 | 82 | 'fields': set([ |
|
83 | 83 | 'bookmarks', |
|
84 | 84 | 'parents', |
|
85 | 85 | 'phase', |
|
86 | 86 | 'revision' |
|
87 | 87 | ]), |
|
88 | 88 | 'revisions': [ |
|
89 | 89 | { |
|
90 | 90 | 'heads': [ |
|
91 | 91 | '\x93\xa8\xbd\x06~\xd2\x84\r\x9a\xa8\x10\xadY\x81h8::,:' |
|
92 | 92 | ], |
|
93 | 93 | 'roots': [], |
|
94 | 94 | 'type': 'changesetdagrange' |
|
95 | 95 | } |
|
96 | 96 | ] |
|
97 | 97 | } |
|
98 | 98 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
99 | 99 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
100 | 100 | received frame(size=1170; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
101 | 101 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
102 | 102 | add changeset 3390ef850073 |
|
103 | 103 | add changeset b709380892b1 |
|
104 | 104 | add changeset 47fe012ab237 |
|
105 | 105 | add changeset 97765fc3cd62 |
|
106 | 106 | add changeset dc666cf9ecf3 |
|
107 | 107 | add changeset 93a8bd067ed2 |
|
108 | 108 | checking for updated bookmarks |
|
109 | 109 | sending 1 commands |
|
110 | 110 | sending command manifestdata: { |
|
111 | 111 | 'fields': set([ |
|
112 | 112 | 'parents', |
|
113 | 113 | 'revision' |
|
114 | 114 | ]), |
|
115 | 115 | 'haveparents': True, |
|
116 | 116 | 'nodes': [ |
|
117 | 117 | '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A', |
|
118 | 118 | '|2 \x1a\xa3\xa1R\xa9\xe6\xa9"+?\xa8\xd0\xe3\x0f\xc2V\xe8', |
|
119 | 119 | '\x8d\xd0W<\x7f\xaf\xe2\x04F\xcc\xea\xac\x05N\xea\xa4x\x91M\xdb', |
|
120 | 120 | '113\x85\xf2!\x8b\x08^\xb2Z\x821\x1e*\xdd\x0e\xeb\x8c3', |
|
121 | 121 | 'H]O\xc2`\xef\\\xb9\xc0p6\x88K\x00k\x11\x0ej\xdby', |
|
122 | 122 | '\xd9;\xc4\x0b\x0e*GMp\xee\xf7}^\x91/f\x7fSd\x83' |
|
123 | 123 | ], |
|
124 | 124 | 'tree': '' |
|
125 | 125 | } |
|
126 | 126 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
127 | 127 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
128 | 128 | received frame(size=1515; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
129 | 129 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
130 | 130 | sending 1 commands |
|
131 | 131 | sending command filesdata: { |
|
132 | 132 | 'fields': set([ |
|
133 | 133 | 'linknode', |
|
134 | 134 | 'parents', |
|
135 | 135 | 'revision' |
|
136 | 136 | ]), |
|
137 | 137 | 'haveparents': False, |
|
138 | 138 | 'revisions': [ |
|
139 | 139 | { |
|
140 | 140 | 'nodes': [ |
|
141 | 141 | '\x93\xa8\xbd\x06~\xd2\x84\r\x9a\xa8\x10\xadY\x81h8::,:' |
|
142 | 142 | ], |
|
143 | 143 | 'type': 'changesetexplicit' |
|
144 | 144 | } |
|
145 | 145 | ] |
|
146 | 146 | } |
|
147 | 147 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
148 | 148 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
149 | 149 | received frame(size=1005; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
150 | 150 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
151 | 151 | updating the branch cache |
|
152 | 152 | new changesets 3390ef850073:93a8bd067ed2 |
|
153 | 153 | updating to branch default |
|
154 | 154 | resolving manifests |
|
155 | 155 | branchmerge: False, force: False, partial: False |
|
156 | 156 | ancestor: 000000000000, local: 000000000000+, remote: 93a8bd067ed2 |
|
157 | 157 | a: remote created -> g |
|
158 | 158 | getting a |
|
159 | 159 | b: remote created -> g |
|
160 | 160 | getting b |
|
161 | 161 | dir0/c: remote created -> g |
|
162 | 162 | getting dir0/c |
|
163 | 163 | dir0/d: remote created -> g |
|
164 | 164 | getting dir0/d |
|
165 | 165 | dir1/e: remote created -> g |
|
166 | 166 | getting dir1/e |
|
167 | 167 | dir1/f: remote created -> g |
|
168 | 168 | getting dir1/f |
|
169 | 169 | 6 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
170 | 170 | (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) |
|
171 | 171 | |
|
172 | 172 | $ sqlite3 -line client-shallow-1/.hg/store/db.sqlite << EOF |
|
173 | 173 | > SELECT id, path, revnum, node, p1rev, p2rev, linkrev, flags FROM filedata ORDER BY id ASC; |
|
174 | 174 | > EOF |
|
175 | 175 | id = 1 |
|
176 | 176 | path = a |
|
177 | 177 | revnum = 0 |
|
178 | 178 | node = \x9a8\x12)\x97\xb3\xac\x97\xbe*\x9a\xa2\xe5V\x83\x83A\xfd\xf2\xcc (esc) |
|
179 | 179 | p1rev = -1 |
|
180 | 180 | p2rev = -1 |
|
181 | 181 | linkrev = 5 |
|
182 | 182 | flags = 2 |
|
183 | 183 | |
|
184 | 184 | id = 2 |
|
185 | 185 | path = b |
|
186 | 186 | revnum = 0 |
|
187 | 187 | node = \xb1zk\xd3g=\x9a\xb8\xce\xd5\x81\xa2 \xf6/=\xa5\xccEx (esc) |
|
188 | 188 | p1rev = -1 |
|
189 | 189 | p2rev = -1 |
|
190 | 190 | linkrev = 5 |
|
191 | 191 | flags = 2 |
|
192 | 192 | |
|
193 | 193 | id = 3 |
|
194 | 194 | path = dir0/c |
|
195 | 195 | revnum = 0 |
|
196 | 196 | node = I\x1d\xa1\xbb\x89\xeax\xc0\xc0\xa2s[\x16\xce}\x93\x1d\xc8\xe2\r (esc) |
|
197 | 197 | p1rev = -1 |
|
198 | 198 | p2rev = -1 |
|
199 | 199 | linkrev = 5 |
|
200 | 200 | flags = 2 |
|
201 | 201 | |
|
202 | 202 | id = 4 |
|
203 | 203 | path = dir0/d |
|
204 | 204 | revnum = 0 |
|
205 | 205 | node = S\x82\x06\xdc\x97\x1eR\x15@\xd6\x84:\xbf\xe6\xd1`2\xf6\xd4& (esc) |
|
206 | 206 | p1rev = -1 |
|
207 | 207 | p2rev = -1 |
|
208 | 208 | linkrev = 5 |
|
209 | 209 | flags = 0 |
|
210 | 210 | |
|
211 | 211 | id = 5 |
|
212 | 212 | path = dir1/e |
|
213 | 213 | revnum = 0 |
|
214 | 214 | node = ]\xf3\xac\xd8\xd0\xc7\xfaP\x98\xd0'\x9a\x044\xc3\x02\x9e+x\xe1 (esc) |
|
215 | 215 | p1rev = -1 |
|
216 | 216 | p2rev = -1 |
|
217 | 217 | linkrev = 5 |
|
218 | 218 | flags = 2 |
|
219 | 219 | |
|
220 | 220 | id = 6 |
|
221 | 221 | path = dir1/f |
|
222 | 222 | revnum = 0 |
|
223 | 223 | node = (\xc7v\xae\x08\xd0\xd5^\xb4\x06H\xb4\x01\xb9\x0f\xf5DH4\x8e (esc) |
|
224 | 224 | p1rev = -1 |
|
225 | 225 | p2rev = -1 |
|
226 | 226 | linkrev = 5 |
|
227 | 227 | flags = 2 |
|
228 | 228 | |
|
229 | 229 | Test a shallow clone with only some files |
|
230 | 230 | |
|
231 | 231 | $ hg --debug clone --depth 1 --include dir0/ http://localhost:$HGPORT client-shallow-narrow-1 |
|
232 | 232 | using http://localhost:$HGPORT/ |
|
233 | 233 | sending capabilities command |
|
234 | 234 | query 1; heads |
|
235 | 235 | sending 2 commands |
|
236 | 236 | sending command heads: {} |
|
237 | 237 | sending command known: { |
|
238 | 238 | 'nodes': [] |
|
239 | 239 | } |
|
240 | 240 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
241 | 241 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
242 | 242 | received frame(size=22; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
243 | 243 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
244 | 244 | received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
245 | 245 | received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
246 | 246 | received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos) |
|
247 | 247 | sending 1 commands |
|
248 | 248 | sending command changesetdata: { |
|
249 | 249 | 'fields': set([ |
|
250 | 250 | 'bookmarks', |
|
251 | 251 | 'parents', |
|
252 | 252 | 'phase', |
|
253 | 253 | 'revision' |
|
254 | 254 | ]), |
|
255 | 255 | 'revisions': [ |
|
256 | 256 | { |
|
257 | 257 | 'heads': [ |
|
258 | 258 | '\x93\xa8\xbd\x06~\xd2\x84\r\x9a\xa8\x10\xadY\x81h8::,:' |
|
259 | 259 | ], |
|
260 | 260 | 'roots': [], |
|
261 | 261 | 'type': 'changesetdagrange' |
|
262 | 262 | } |
|
263 | 263 | ] |
|
264 | 264 | } |
|
265 | 265 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
266 | 266 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
267 | 267 | received frame(size=1170; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
268 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) | |
|
268 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) (?) | |
|
269 | 269 | add changeset 3390ef850073 |
|
270 | 270 | add changeset b709380892b1 |
|
271 | 271 | add changeset 47fe012ab237 |
|
272 | 272 | add changeset 97765fc3cd62 |
|
273 | 273 | add changeset dc666cf9ecf3 |
|
274 | 274 | add changeset 93a8bd067ed2 |
|
275 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) (?) | |
|
275 | 276 | checking for updated bookmarks |
|
276 | 277 | sending 1 commands |
|
277 | 278 | sending command manifestdata: { |
|
278 | 279 | 'fields': set([ |
|
279 | 280 | 'parents', |
|
280 | 281 | 'revision' |
|
281 | 282 | ]), |
|
282 | 283 | 'haveparents': True, |
|
283 | 284 | 'nodes': [ |
|
284 | 285 | '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A', |
|
285 | 286 | '|2 \x1a\xa3\xa1R\xa9\xe6\xa9"+?\xa8\xd0\xe3\x0f\xc2V\xe8', |
|
286 | 287 | '\x8d\xd0W<\x7f\xaf\xe2\x04F\xcc\xea\xac\x05N\xea\xa4x\x91M\xdb', |
|
287 | 288 | '113\x85\xf2!\x8b\x08^\xb2Z\x821\x1e*\xdd\x0e\xeb\x8c3', |
|
288 | 289 | 'H]O\xc2`\xef\\\xb9\xc0p6\x88K\x00k\x11\x0ej\xdby', |
|
289 | 290 | '\xd9;\xc4\x0b\x0e*GMp\xee\xf7}^\x91/f\x7fSd\x83' |
|
290 | 291 | ], |
|
291 | 292 | 'tree': '' |
|
292 | 293 | } |
|
293 | 294 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
294 | 295 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
295 | 296 | received frame(size=1515; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
296 | 297 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
297 | 298 | sending 1 commands |
|
298 | 299 | sending command filesdata: { |
|
299 | 300 | 'fields': set([ |
|
300 | 301 | 'linknode', |
|
301 | 302 | 'parents', |
|
302 | 303 | 'revision' |
|
303 | 304 | ]), |
|
304 | 305 | 'haveparents': False, |
|
305 | 306 | 'pathfilter': { |
|
306 | 307 | 'include': [ |
|
307 | 308 | 'path:dir0' |
|
308 | 309 | ] |
|
309 | 310 | }, |
|
310 | 311 | 'revisions': [ |
|
311 | 312 | { |
|
312 | 313 | 'nodes': [ |
|
313 | 314 | '\x93\xa8\xbd\x06~\xd2\x84\r\x9a\xa8\x10\xadY\x81h8::,:' |
|
314 | 315 | ], |
|
315 | 316 | 'type': 'changesetexplicit' |
|
316 | 317 | } |
|
317 | 318 | ] |
|
318 | 319 | } |
|
319 | 320 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
320 | 321 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
321 | 322 | received frame(size=355; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
322 | 323 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
323 | 324 | updating the branch cache |
|
324 | 325 | new changesets 3390ef850073:93a8bd067ed2 |
|
325 | 326 | updating to branch default |
|
326 | 327 | resolving manifests |
|
327 | 328 | branchmerge: False, force: False, partial: False |
|
328 | 329 | ancestor: 000000000000, local: 000000000000+, remote: 93a8bd067ed2 |
|
329 | 330 | dir0/c: remote created -> g |
|
330 | 331 | getting dir0/c |
|
331 | 332 | dir0/d: remote created -> g |
|
332 | 333 | getting dir0/d |
|
333 | 334 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
334 | 335 | (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) |
|
335 | 336 | |
|
336 | 337 | $ sqlite3 -line client-shallow-narrow-1/.hg/store/db.sqlite << EOF |
|
337 | 338 | > SELECT id, path, revnum, node, p1rev, p2rev, linkrev, flags FROM filedata ORDER BY id ASC; |
|
338 | 339 | > EOF |
|
339 | 340 | id = 1 |
|
340 | 341 | path = dir0/c |
|
341 | 342 | revnum = 0 |
|
342 | 343 | node = I\x1d\xa1\xbb\x89\xeax\xc0\xc0\xa2s[\x16\xce}\x93\x1d\xc8\xe2\r (esc) |
|
343 | 344 | p1rev = -1 |
|
344 | 345 | p2rev = -1 |
|
345 | 346 | linkrev = 5 |
|
346 | 347 | flags = 2 |
|
347 | 348 | |
|
348 | 349 | id = 2 |
|
349 | 350 | path = dir0/d |
|
350 | 351 | revnum = 0 |
|
351 | 352 | node = S\x82\x06\xdc\x97\x1eR\x15@\xd6\x84:\xbf\xe6\xd1`2\xf6\xd4& (esc) |
|
352 | 353 | p1rev = -1 |
|
353 | 354 | p2rev = -1 |
|
354 | 355 | linkrev = 5 |
|
355 | 356 | flags = 0 |
|
356 | 357 | |
|
357 | 358 | Cloning an old revision with depth=1 works |
|
358 | 359 | |
|
359 | 360 | $ hg --debug clone --depth 1 -r 97765fc3cd624fd1fa0176932c21ffd16adf432e http://localhost:$HGPORT client-shallow-2 |
|
360 | 361 | using http://localhost:$HGPORT/ |
|
361 | 362 | sending capabilities command |
|
362 | 363 | sending 1 commands |
|
363 | 364 | sending command lookup: { |
|
364 | 365 | 'key': '97765fc3cd624fd1fa0176932c21ffd16adf432e' |
|
365 | 366 | } |
|
366 | 367 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
367 | 368 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
368 | 369 | received frame(size=21; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
369 | 370 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
370 | 371 | query 1; heads |
|
371 | 372 | sending 2 commands |
|
372 | 373 | sending command heads: {} |
|
373 | 374 | sending command known: { |
|
374 | 375 | 'nodes': [] |
|
375 | 376 | } |
|
376 | 377 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
377 | 378 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
378 | 379 | received frame(size=22; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
379 | 380 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
380 | 381 | received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
381 | 382 | received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
382 | 383 | received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos) |
|
383 | 384 | sending 1 commands |
|
384 | 385 | sending command changesetdata: { |
|
385 | 386 | 'fields': set([ |
|
386 | 387 | 'bookmarks', |
|
387 | 388 | 'parents', |
|
388 | 389 | 'phase', |
|
389 | 390 | 'revision' |
|
390 | 391 | ]), |
|
391 | 392 | 'revisions': [ |
|
392 | 393 | { |
|
393 | 394 | 'heads': [ |
|
394 | 395 | '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.' |
|
395 | 396 | ], |
|
396 | 397 | 'roots': [], |
|
397 | 398 | 'type': 'changesetdagrange' |
|
398 | 399 | } |
|
399 | 400 | ] |
|
400 | 401 | } |
|
401 | 402 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
402 | 403 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
403 | 404 | received frame(size=783; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
404 | 405 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
405 | 406 | add changeset 3390ef850073 |
|
406 | 407 | add changeset b709380892b1 |
|
407 | 408 | add changeset 47fe012ab237 |
|
408 | 409 | add changeset 97765fc3cd62 |
|
409 | 410 | checking for updated bookmarks |
|
410 | 411 | sending 1 commands |
|
411 | 412 | sending command manifestdata: { |
|
412 | 413 | 'fields': set([ |
|
413 | 414 | 'parents', |
|
414 | 415 | 'revision' |
|
415 | 416 | ]), |
|
416 | 417 | 'haveparents': True, |
|
417 | 418 | 'nodes': [ |
|
418 | 419 | '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A', |
|
419 | 420 | '|2 \x1a\xa3\xa1R\xa9\xe6\xa9"+?\xa8\xd0\xe3\x0f\xc2V\xe8', |
|
420 | 421 | '\x8d\xd0W<\x7f\xaf\xe2\x04F\xcc\xea\xac\x05N\xea\xa4x\x91M\xdb', |
|
421 | 422 | '113\x85\xf2!\x8b\x08^\xb2Z\x821\x1e*\xdd\x0e\xeb\x8c3' |
|
422 | 423 | ], |
|
423 | 424 | 'tree': '' |
|
424 | 425 | } |
|
425 | 426 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
426 | 427 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
427 | 428 | received frame(size=967; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
428 | 429 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
429 | 430 | sending 1 commands |
|
430 | 431 | sending command filesdata: { |
|
431 | 432 | 'fields': set([ |
|
432 | 433 | 'linknode', |
|
433 | 434 | 'parents', |
|
434 | 435 | 'revision' |
|
435 | 436 | ]), |
|
436 | 437 | 'haveparents': False, |
|
437 | 438 | 'revisions': [ |
|
438 | 439 | { |
|
439 | 440 | 'nodes': [ |
|
440 | 441 | '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.' |
|
441 | 442 | ], |
|
442 | 443 | 'type': 'changesetexplicit' |
|
443 | 444 | } |
|
444 | 445 | ] |
|
445 | 446 | } |
|
446 | 447 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
447 | 448 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
448 | 449 | received frame(size=1005; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
449 | 450 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
450 | 451 | updating the branch cache |
|
451 | 452 | new changesets 3390ef850073:97765fc3cd62 |
|
452 | 453 | updating to branch default |
|
453 | 454 | resolving manifests |
|
454 | 455 | branchmerge: False, force: False, partial: False |
|
455 | 456 | ancestor: 000000000000, local: 000000000000+, remote: 97765fc3cd62 |
|
456 | 457 | a: remote created -> g |
|
457 | 458 | getting a |
|
458 | 459 | b: remote created -> g |
|
459 | 460 | getting b |
|
460 | 461 | dir0/c: remote created -> g |
|
461 | 462 | getting dir0/c |
|
462 | 463 | dir0/d: remote created -> g |
|
463 | 464 | getting dir0/d |
|
464 | 465 | dir1/e: remote created -> g |
|
465 | 466 | getting dir1/e |
|
466 | 467 | dir1/f: remote created -> g |
|
467 | 468 | getting dir1/f |
|
468 | 469 | 6 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
469 | 470 | (sent 6 HTTP requests and * bytes; received * bytes in responses) (glob) |
|
470 | 471 | |
|
471 | 472 | Incremental pull of shallow clone fetches new changesets |
|
472 | 473 | |
|
473 | 474 | $ hg --cwd client-shallow-2 --debug pull http://localhost:$HGPORT |
|
474 | 475 | pulling from http://localhost:$HGPORT/ |
|
475 | 476 | using http://localhost:$HGPORT/ |
|
476 | 477 | sending capabilities command |
|
477 | 478 | query 1; heads |
|
478 | 479 | sending 2 commands |
|
479 | 480 | sending command heads: {} |
|
480 | 481 | sending command known: { |
|
481 | 482 | 'nodes': [ |
|
482 | 483 | '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.' |
|
483 | 484 | ] |
|
484 | 485 | } |
|
485 | 486 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
486 | 487 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
487 | 488 | received frame(size=22; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
488 | 489 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
489 | 490 | received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
490 | 491 | received frame(size=2; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
491 | 492 | received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos) |
|
492 | 493 | searching for changes |
|
493 | 494 | all local changesets known remotely |
|
494 | 495 | sending 1 commands |
|
495 | 496 | sending command changesetdata: { |
|
496 | 497 | 'fields': set([ |
|
497 | 498 | 'bookmarks', |
|
498 | 499 | 'parents', |
|
499 | 500 | 'phase', |
|
500 | 501 | 'revision' |
|
501 | 502 | ]), |
|
502 | 503 | 'revisions': [ |
|
503 | 504 | { |
|
504 | 505 | 'heads': [ |
|
505 | 506 | '\x93\xa8\xbd\x06~\xd2\x84\r\x9a\xa8\x10\xadY\x81h8::,:' |
|
506 | 507 | ], |
|
507 | 508 | 'roots': [ |
|
508 | 509 | '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.' |
|
509 | 510 | ], |
|
510 | 511 | 'type': 'changesetdagrange' |
|
511 | 512 | } |
|
512 | 513 | ] |
|
513 | 514 | } |
|
514 | 515 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
515 | 516 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
516 | 517 | received frame(size=400; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
517 | 518 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
518 | 519 | add changeset dc666cf9ecf3 |
|
519 | 520 | add changeset 93a8bd067ed2 |
|
520 | 521 | checking for updated bookmarks |
|
521 | 522 | sending 1 commands |
|
522 | 523 | sending command manifestdata: { |
|
523 | 524 | 'fields': set([ |
|
524 | 525 | 'parents', |
|
525 | 526 | 'revision' |
|
526 | 527 | ]), |
|
527 | 528 | 'haveparents': True, |
|
528 | 529 | 'nodes': [ |
|
529 | 530 | 'H]O\xc2`\xef\\\xb9\xc0p6\x88K\x00k\x11\x0ej\xdby', |
|
530 | 531 | '\xd9;\xc4\x0b\x0e*GMp\xee\xf7}^\x91/f\x7fSd\x83' |
|
531 | 532 | ], |
|
532 | 533 | 'tree': '' |
|
533 | 534 | } |
|
534 | 535 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
535 | 536 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
536 | 537 | received frame(size=561; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
537 | 538 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
538 | 539 | sending 1 commands |
|
539 | 540 | sending command filesdata: { |
|
540 | 541 | 'fields': set([ |
|
541 | 542 | 'linknode', |
|
542 | 543 | 'parents', |
|
543 | 544 | 'revision' |
|
544 | 545 | ]), |
|
545 | 546 | 'haveparents': False, |
|
546 | 547 | 'revisions': [ |
|
547 | 548 | { |
|
548 | 549 | 'nodes': [ |
|
549 | 550 | '\xdcfl\xf9\xec\xf3\xd9Nk\x83\x0f0\xe5\xf1\'.*\x91d\xd9', |
|
550 | 551 | '\x93\xa8\xbd\x06~\xd2\x84\r\x9a\xa8\x10\xadY\x81h8::,:' |
|
551 | 552 | ], |
|
552 | 553 | 'type': 'changesetexplicit' |
|
553 | 554 | } |
|
554 | 555 | ] |
|
555 | 556 | } |
|
556 | 557 | received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos) |
|
557 | 558 | received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
558 | 559 | received frame(size=1373; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
|
559 | 560 | received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
|
560 | 561 | updating the branch cache |
|
561 | 562 | new changesets dc666cf9ecf3:93a8bd067ed2 |
|
562 | 563 | (run 'hg update' to get a working copy) |
|
563 | 564 | (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) |
|
564 | 565 | |
|
565 | 566 | $ hg --cwd client-shallow-2 up tip |
|
566 | 567 | merging dir0/c |
|
567 | 568 | merging dir1/e |
|
568 | 569 | 3 files updated, 2 files merged, 0 files removed, 0 files unresolved |
General Comments 0
You need to be logged in to leave comments.
Login now