Show More
@@ -292,32 +292,56 b' Cannot produce streaming clone bundles w' | |||||
292 |
|
292 | |||
293 | packed1 is produced properly |
|
293 | packed1 is produced properly | |
294 |
|
294 | |||
295 | #if reporevlogstore |
|
295 | ||
|
296 | #if reporevlogstore rust | |||
296 |
|
297 | |||
297 | $ hg -R test debugcreatestreamclonebundle packed.hg |
|
298 | $ hg -R test debugcreatestreamclonebundle packed.hg | |
298 |
writing 266 |
|
299 | writing 2665 bytes for 6 files | |
299 | writing 2665 bytes for 6 files (zstd !) |
|
300 | bundle requirements: generaldelta, persistent-nodemap, revlogv1, sparserevlog | |
300 | bundle requirements: generaldelta, revlogv1, sparserevlog (no-rust !) |
|
301 | ||
301 | bundle requirements: generaldelta, persistent-nodemap, revlogv1, sparserevlog (rust !) |
|
302 | $ f -B 64 --size --sha1 --hexdump packed.hg | |
|
303 | packed.hg: size=2860, sha1=81d7a2e535892cda51e82c200f818de2cca828d3 | |||
|
304 | 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 06 00 00 |HGS1UN..........| | |||
|
305 | 0010: 00 00 00 00 0a 69 00 36 67 65 6e 65 72 61 6c 64 |.....i.6generald| | |||
|
306 | 0020: 65 6c 74 61 2c 70 65 72 73 69 73 74 65 6e 74 2d |elta,persistent-| | |||
|
307 | 0030: 6e 6f 64 65 6d 61 70 2c 72 65 76 6c 6f 67 76 31 |nodemap,revlogv1| | |||
|
308 | $ hg debugbundle --spec packed.hg | |||
|
309 | none-packed1;requirements%3Dgeneraldelta%2Cpersistent-nodemap%2Crevlogv1%2Csparserevlog | |||
|
310 | #endif | |||
|
311 | ||||
|
312 | #if reporevlogstore no-rust zstd | |||
|
313 | ||||
|
314 | $ hg -R test debugcreatestreamclonebundle packed.hg | |||
|
315 | writing 2665 bytes for 6 files | |||
|
316 | bundle requirements: generaldelta, revlogv1, sparserevlog | |||
302 |
|
317 | |||
303 | $ f -B 64 --size --sha1 --hexdump packed.hg |
|
318 | $ f -B 64 --size --sha1 --hexdump packed.hg | |
304 | packed.hg: size=2840, sha1=12bf3eee3eb8a04c503ce2d29b48f0135c7edff5 (no-zstd !) |
|
319 | packed.hg: size=2841, sha1=8b645a65f49b0ae43042a9f3da56d4bfdf1c7f99 | |
305 | packed.hg: size=2841, sha1=8b645a65f49b0ae43042a9f3da56d4bfdf1c7f99 (zstd no-rust !) |
|
|||
306 | packed.hg: size=2860, sha1=81d7a2e535892cda51e82c200f818de2cca828d3 (rust !) |
|
|||
307 | 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 06 00 00 |HGS1UN..........| |
|
320 | 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 06 00 00 |HGS1UN..........| | |
308 |
0010: 00 00 00 00 0a 6 |
|
321 | 0010: 00 00 00 00 0a 69 00 23 67 65 6e 65 72 61 6c 64 |.....i.#generald| | |
309 |
0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 2c 73 70 |elta,revlogv1,sp| |
|
322 | 0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 2c 73 70 |elta,revlogv1,sp| | |
310 |
0030: 61 72 73 65 72 65 76 6c 6f 67 00 64 61 74 61 2f |arserevlog.data/| |
|
323 | 0030: 61 72 73 65 72 65 76 6c 6f 67 00 64 61 74 61 2f |arserevlog.data/| | |
311 | 0010: 00 00 00 00 0a 69 00 23 67 65 6e 65 72 61 6c 64 |.....i.#generald| (zstd no-rust !) |
|
324 | $ hg debugbundle --spec packed.hg | |
312 | 0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 2c 73 70 |elta,revlogv1,sp| (zstd no-rust !) |
|
325 | none-packed1;requirements%3Dgeneraldelta%2Crevlogv1%2Csparserevlog | |
313 | 0030: 61 72 73 65 72 65 76 6c 6f 67 00 64 61 74 61 2f |arserevlog.data/| (zstd no-rust !) |
|
326 | #endif | |
314 | 0010: 00 00 00 00 0a 69 00 36 67 65 6e 65 72 61 6c 64 |.....i.6generald| (rust !) |
|
327 | ||
315 | 0020: 65 6c 74 61 2c 70 65 72 73 69 73 74 65 6e 74 2d |elta,persistent-| (rust !) |
|
328 | #if reporevlogstore no-rust no-zstd | |
316 | 0030: 6e 6f 64 65 6d 61 70 2c 72 65 76 6c 6f 67 76 31 |nodemap,revlogv1| (rust !) |
|
|||
317 |
|
329 | |||
|
330 | $ hg -R test debugcreatestreamclonebundle packed.hg | |||
|
331 | writing 2664 bytes for 6 files | |||
|
332 | bundle requirements: generaldelta, revlogv1, sparserevlog | |||
|
333 | ||||
|
334 | $ f -B 64 --size --sha1 --hexdump packed.hg | |||
|
335 | packed.hg: size=2840, sha1=12bf3eee3eb8a04c503ce2d29b48f0135c7edff5 | |||
|
336 | 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 06 00 00 |HGS1UN..........| | |||
|
337 | 0010: 00 00 00 00 0a 68 00 23 67 65 6e 65 72 61 6c 64 |.....h.#generald| | |||
|
338 | 0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 2c 73 70 |elta,revlogv1,sp| | |||
|
339 | 0030: 61 72 73 65 72 65 76 6c 6f 67 00 64 61 74 61 2f |arserevlog.data/| | |||
318 | $ hg debugbundle --spec packed.hg |
|
340 | $ hg debugbundle --spec packed.hg | |
319 |
none-packed1;requirements%3Dgeneraldelta%2Crevlogv1%2Csparserevlog |
|
341 | none-packed1;requirements%3Dgeneraldelta%2Crevlogv1%2Csparserevlog | |
320 | none-packed1;requirements%3Dgeneraldelta%2Cpersistent-nodemap%2Crevlogv1%2Csparserevlog (rust !) |
|
342 | #endif | |
|
343 | ||||
|
344 | #if reporevlogstore | |||
321 |
|
345 | |||
322 | generaldelta requirement is not listed in stream clone bundles unless used |
|
346 | generaldelta requirement is not listed in stream clone bundles unless used | |
323 |
|
347 | |||
@@ -326,25 +350,66 b' generaldelta requirement is not listed i' | |||||
326 | $ touch foo |
|
350 | $ touch foo | |
327 | $ hg -q commit -A -m initial |
|
351 | $ hg -q commit -A -m initial | |
328 | $ cd .. |
|
352 | $ cd .. | |
|
353 | ||||
|
354 | #endif | |||
|
355 | ||||
|
356 | #if reporevlogstore rust | |||
|
357 | ||||
329 | $ hg -R testnongd debugcreatestreamclonebundle packednongd.hg |
|
358 | $ hg -R testnongd debugcreatestreamclonebundle packednongd.hg | |
330 | writing 301 bytes for 3 files |
|
359 | writing 301 bytes for 3 files | |
331 |
bundle requirements: revlogv1 |
|
360 | bundle requirements: persistent-nodemap, revlogv1 | |
332 | bundle requirements: persistent-nodemap, revlogv1 (rust !) |
|
361 | ||
|
362 | $ f -B 64 --size --sha1 --hexdump packednongd.hg | |||
|
363 | packednongd.hg: size=402, sha1=d3cc1417f0e8142cf9340aaaa520b660ad3ec3ea | |||
|
364 | 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 03 00 00 |HGS1UN..........| | |||
|
365 | 0010: 00 00 00 00 01 2d 00 1c 70 65 72 73 69 73 74 65 |.....-..persiste| | |||
|
366 | 0020: 6e 74 2d 6e 6f 64 65 6d 61 70 2c 72 65 76 6c 6f |nt-nodemap,revlo| | |||
|
367 | 0030: 67 76 31 00 64 61 74 61 2f 66 6f 6f 2e 69 00 36 |gv1.data/foo.i.6| | |||
|
368 | ||||
|
369 | $ hg debugbundle --spec packednongd.hg | |||
|
370 | none-packed1;requirements%3Dpersistent-nodemap%2Crevlogv1 | |||
|
371 | ||||
|
372 | #endif | |||
|
373 | ||||
|
374 | #if reporevlogstore no-rust zstd | |||
|
375 | ||||
|
376 | $ hg -R testnongd debugcreatestreamclonebundle packednongd.hg | |||
|
377 | writing 301 bytes for 3 files | |||
|
378 | bundle requirements: revlogv1 | |||
333 |
|
379 | |||
334 | $ f -B 64 --size --sha1 --hexdump packednongd.hg |
|
380 | $ f -B 64 --size --sha1 --hexdump packednongd.hg | |
335 |
packednongd.hg: size=383, sha1=1d9c230238edd5d38907100b729ba72b1831fe6f |
|
381 | packednongd.hg: size=383, sha1=1d9c230238edd5d38907100b729ba72b1831fe6f | |
336 | packednongd.hg: size=402, sha1=d3cc1417f0e8142cf9340aaaa520b660ad3ec3ea (rust !) |
|
|||
337 | 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 03 00 00 |HGS1UN..........| |
|
382 | 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 03 00 00 |HGS1UN..........| | |
338 |
0010: 00 00 00 00 01 2d 00 09 72 65 76 6c 6f 67 76 31 |.....-..revlogv1| |
|
383 | 0010: 00 00 00 00 01 2d 00 09 72 65 76 6c 6f 67 76 31 |.....-..revlogv1| | |
339 |
0020: 00 64 61 74 61 2f 66 6f 6f 2e 69 00 36 34 0a 00 |.data/foo.i.64..| |
|
384 | 0020: 00 64 61 74 61 2f 66 6f 6f 2e 69 00 36 34 0a 00 |.data/foo.i.64..| | |
340 |
0030: 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| |
|
385 | 0030: 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |
341 | 0010: 00 00 00 00 01 2d 00 1c 70 65 72 73 69 73 74 65 |.....-..persiste| (rust !) |
|
|||
342 | 0020: 6e 74 2d 6e 6f 64 65 6d 61 70 2c 72 65 76 6c 6f |nt-nodemap,revlo| (rust !) |
|
|||
343 | 0030: 67 76 31 00 64 61 74 61 2f 66 6f 6f 2e 69 00 36 |gv1.data/foo.i.6| (rust !) |
|
|||
344 |
|
386 | |||
345 | $ hg debugbundle --spec packednongd.hg |
|
387 | $ hg debugbundle --spec packednongd.hg | |
346 |
none-packed1;requirements%3Drevlogv1 |
|
388 | none-packed1;requirements%3Drevlogv1 | |
347 | none-packed1;requirements%3Dpersistent-nodemap%2Crevlogv1 (rust !) |
|
389 | ||
|
390 | ||||
|
391 | #endif | |||
|
392 | ||||
|
393 | #if reporevlogstore no-rust no-zstd | |||
|
394 | ||||
|
395 | $ hg -R testnongd debugcreatestreamclonebundle packednongd.hg | |||
|
396 | writing 301 bytes for 3 files | |||
|
397 | bundle requirements: revlogv1 | |||
|
398 | ||||
|
399 | $ f -B 64 --size --sha1 --hexdump packednongd.hg | |||
|
400 | packednongd.hg: size=383, sha1=1d9c230238edd5d38907100b729ba72b1831fe6f | |||
|
401 | 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 03 00 00 |HGS1UN..........| | |||
|
402 | 0010: 00 00 00 00 01 2d 00 09 72 65 76 6c 6f 67 76 31 |.....-..revlogv1| | |||
|
403 | 0020: 00 64 61 74 61 2f 66 6f 6f 2e 69 00 36 34 0a 00 |.data/foo.i.64..| | |||
|
404 | 0030: 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |||
|
405 | ||||
|
406 | $ hg debugbundle --spec packednongd.hg | |||
|
407 | none-packed1;requirements%3Drevlogv1 | |||
|
408 | ||||
|
409 | ||||
|
410 | #endif | |||
|
411 | ||||
|
412 | #if reporevlogstore | |||
348 |
|
413 | |||
349 | Warning emitted when packed bundles contain secret changesets |
|
414 | Warning emitted when packed bundles contain secret changesets | |
350 |
|
415 | |||
@@ -355,11 +420,36 b' Warning emitted when packed bundles cont' | |||||
355 | $ hg phase --force --secret -r . |
|
420 | $ hg phase --force --secret -r . | |
356 | $ cd .. |
|
421 | $ cd .. | |
357 |
|
422 | |||
|
423 | #endif | |||
|
424 | ||||
|
425 | #if reporevlogstore rust | |||
|
426 | ||||
358 | $ hg -R testsecret debugcreatestreamclonebundle packedsecret.hg |
|
427 | $ hg -R testsecret debugcreatestreamclonebundle packedsecret.hg | |
359 | (warning: stream clone bundle will contain secret revisions) |
|
428 | (warning: stream clone bundle will contain secret revisions) | |
360 | writing 301 bytes for 3 files |
|
429 | writing 301 bytes for 3 files | |
361 |
bundle requirements: generaldelta, revlogv1, sparserevlog |
|
430 | bundle requirements: generaldelta, persistent-nodemap, revlogv1, sparserevlog | |
362 | bundle requirements: generaldelta, persistent-nodemap, revlogv1, sparserevlog (rust !) |
|
431 | ||
|
432 | #endif | |||
|
433 | ||||
|
434 | #if reporevlogstore no-rust zstd | |||
|
435 | ||||
|
436 | $ hg -R testsecret debugcreatestreamclonebundle packedsecret.hg | |||
|
437 | (warning: stream clone bundle will contain secret revisions) | |||
|
438 | writing 301 bytes for 3 files | |||
|
439 | bundle requirements: generaldelta, revlogv1, sparserevlog | |||
|
440 | ||||
|
441 | #endif | |||
|
442 | ||||
|
443 | #if reporevlogstore no-rust no-zstd | |||
|
444 | ||||
|
445 | $ hg -R testsecret debugcreatestreamclonebundle packedsecret.hg | |||
|
446 | (warning: stream clone bundle will contain secret revisions) | |||
|
447 | writing 301 bytes for 3 files | |||
|
448 | bundle requirements: generaldelta, revlogv1, sparserevlog | |||
|
449 | ||||
|
450 | #endif | |||
|
451 | ||||
|
452 | #if reporevlogstore | |||
363 |
|
453 | |||
364 | Unpacking packed1 bundles with "hg unbundle" isn't allowed |
|
454 | Unpacking packed1 bundles with "hg unbundle" isn't allowed | |
365 |
|
455 |
General Comments 0
You need to be logged in to leave comments.
Login now