107 > hg unbundle -R repo-from-type-$1 ./b-$1.hg |
107 > hg unbundle -R repo-from-type-$1 ./b-$1.hg |
108 > hg -R repo-from-type-$1 log -GT '[{phase}] {desc|firstline}\n' |
108 > hg -R repo-from-type-$1 log -GT '[{phase}] {desc|firstline}\n' |
109 > echo |
109 > echo |
110 > } |
110 > } |
111 |
111 |
112 $ for t in "None" "bzip2" "gzip" "none-v2" "v2" "v1" "gzip-v1"; do |
112 $ for t in "None" "bzip2" "gzip" "none-v2" "v2" "v1" "gzip-v1" "v3"; do |
113 > testbundle $t |
113 > testbundle $t |
114 > done |
114 > done |
115 % test bundle type None |
115 % test bundle type None |
116 =================================== |
116 =================================== |
117 7 changesets found |
117 7 changesets found |
361 | o [draft] commit_2 |
361 | o [draft] commit_2 |
362 | | |
362 | | |
363 | o [draft] commit_1 |
363 | o [draft] commit_1 |
364 |/ |
364 |/ |
365 o [draft] commit_root |
365 o [draft] commit_root |
|
366 |
|
367 |
|
368 % test bundle type v3 |
|
369 =================================== |
|
370 7 changesets found |
|
371 HG20\x00\x00 (esc) |
|
372 Stream params: {Compression: BZ} |
|
373 changegroup -- {nbchanges: 7, targetphase: 2, version: 03} (mandatory: True) |
|
374 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
|
375 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
|
376 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
|
377 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
|
378 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
|
379 2ea90778052ba7558fab36e3fd5d149512ff986b |
|
380 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
|
381 cache:rev-branch-cache -- {} (mandatory: False) |
|
382 phase-heads -- {} (mandatory: True) |
|
383 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d public |
|
384 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 draft |
|
385 2ea90778052ba7558fab36e3fd5d149512ff986b draft |
|
386 bzip2-v2;cg.version=03 |
|
387 |
|
388 adding changesets |
|
389 adding manifests |
|
390 adding file changes |
|
391 added 7 changesets with 7 changes to 1 files (+1 heads) |
|
392 new changesets ac39af4a9f7d:b9f5f740a8cd (4 drafts, 1 secrets) |
|
393 (run 'hg heads' to see heads, 'hg merge' to merge) |
|
394 o [secret] commit_6 |
|
395 | |
|
396 o [draft] commit_5 |
|
397 | |
|
398 o [draft] commit_4 |
|
399 | |
|
400 o [public] commit_3 |
|
401 | |
|
402 | o [draft] commit_2 |
|
403 | | |
|
404 | o [draft] commit_1 |
|
405 |/ |
|
406 o [public] commit_root |
366 |
407 |
367 |
408 |
368 |
409 |
369 Compression level can be adjusted for bundle2 bundles |
410 Compression level can be adjusted for bundle2 bundles |
370 |
411 |