Mercurial > hg
comparison tests/test-clonebundles.t @ 34393:fffd3369aa83
commands: rename clone --uncompressed to --stream and document
--uncompressed isn't a very good name and its description in the
help documentation isn't very useful. We refer to this concept as
"stream clones" in a number of places. I think it makes sense to
change the user-facing argument to use the mode --stream. So this
commit does that.
We keep --uncompressed around for backwards compatibility.
While we're here, we overhaul the help docs for streaming clones
to be somewhat useful.
All tests have been updated to reflect the new preferred --stream
argument. A test for backwards compatibility of --uncompressed has
been added.
.. bc::
`hg clone --stream` should now be used instead of --uncompressed.
--uncompressed is marked as deprecated and is an alias for --stream.
There is no schedule for elimination of --uncompressed.
Differential Revision: https://phab.mercurial-scm.org/D864
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 01 Oct 2017 11:29:20 +0100 |
parents | 44841a4d0efb |
children | eb586ed5d8ce |
comparison
equal
deleted
inserted
replaced
34392:aea6344e989b | 34393:fffd3369aa83 |
---|---|
430 added 2 changesets with 2 changes to 2 files | 430 added 2 changesets with 2 changes to 2 files |
431 finished applying clone bundle | 431 finished applying clone bundle |
432 searching for changes | 432 searching for changes |
433 no changes found | 433 no changes found |
434 | 434 |
435 Test interaction between clone bundles and --uncompressed | 435 Test interaction between clone bundles and --stream |
436 | 436 |
437 A manifest with just a gzip bundle | 437 A manifest with just a gzip bundle |
438 | 438 |
439 $ cat > server/.hg/clonebundles.manifest << EOF | 439 $ cat > server/.hg/clonebundles.manifest << EOF |
440 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2 | 440 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2 |
441 > EOF | 441 > EOF |
442 | 442 |
443 $ hg clone -U --uncompressed http://localhost:$HGPORT uncompressed-gzip | 443 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-gzip |
444 no compatible clone bundles available on server; falling back to regular clone | 444 no compatible clone bundles available on server; falling back to regular clone |
445 (you may want to report this to the server operator) | 445 (you may want to report this to the server operator) |
446 streaming all changes | 446 streaming all changes |
447 4 files to transfer, 613 bytes of data | 447 4 files to transfer, 613 bytes of data |
448 transferred 613 bytes in * seconds (*) (glob) | 448 transferred 613 bytes in * seconds (*) (glob) |
453 | 453 |
454 $ cat > server/.hg/clonebundles.manifest << EOF | 454 $ cat > server/.hg/clonebundles.manifest << EOF |
455 > http://localhost:$HGPORT1/packed.hg | 455 > http://localhost:$HGPORT1/packed.hg |
456 > EOF | 456 > EOF |
457 | 457 |
458 $ hg clone -U --uncompressed http://localhost:$HGPORT uncompressed-no-bundlespec | 458 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-no-bundlespec |
459 no compatible clone bundles available on server; falling back to regular clone | 459 no compatible clone bundles available on server; falling back to regular clone |
460 (you may want to report this to the server operator) | 460 (you may want to report this to the server operator) |
461 streaming all changes | 461 streaming all changes |
462 4 files to transfer, 613 bytes of data | 462 4 files to transfer, 613 bytes of data |
463 transferred 613 bytes in * seconds (*) (glob) | 463 transferred 613 bytes in * seconds (*) (glob) |
469 $ cat > server/.hg/clonebundles.manifest << EOF | 469 $ cat > server/.hg/clonebundles.manifest << EOF |
470 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2 | 470 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2 |
471 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1 | 471 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1 |
472 > EOF | 472 > EOF |
473 | 473 |
474 $ hg clone -U --uncompressed http://localhost:$HGPORT uncompressed-gzip-packed | 474 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-gzip-packed |
475 applying clone bundle from http://localhost:$HGPORT1/packed.hg | 475 applying clone bundle from http://localhost:$HGPORT1/packed.hg |
476 4 files to transfer, 613 bytes of data | 476 4 files to transfer, 613 bytes of data |
477 transferred 613 bytes in * seconds (*) (glob) | 477 transferred 613 bytes in * seconds (*) (glob) |
478 finished applying clone bundle | 478 finished applying clone bundle |
479 searching for changes | 479 searching for changes |
484 $ cat > server/.hg/clonebundles.manifest << EOF | 484 $ cat > server/.hg/clonebundles.manifest << EOF |
485 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2 | 485 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2 |
486 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1;requirements%3Drevlogv1 | 486 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1;requirements%3Drevlogv1 |
487 > EOF | 487 > EOF |
488 | 488 |
489 $ hg clone -U --uncompressed http://localhost:$HGPORT uncompressed-gzip-packed-requirements | 489 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-gzip-packed-requirements |
490 applying clone bundle from http://localhost:$HGPORT1/packed.hg | 490 applying clone bundle from http://localhost:$HGPORT1/packed.hg |
491 4 files to transfer, 613 bytes of data | 491 4 files to transfer, 613 bytes of data |
492 transferred 613 bytes in * seconds (*) (glob) | 492 transferred 613 bytes in * seconds (*) (glob) |
493 finished applying clone bundle | 493 finished applying clone bundle |
494 searching for changes | 494 searching for changes |
499 $ cat > server/.hg/clonebundles.manifest << EOF | 499 $ cat > server/.hg/clonebundles.manifest << EOF |
500 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2 | 500 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2 |
501 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1;requirements%3Drevlogv42 | 501 > http://localhost:$HGPORT1/packed.hg BUNDLESPEC=none-packed1;requirements%3Drevlogv42 |
502 > EOF | 502 > EOF |
503 | 503 |
504 $ hg clone -U --uncompressed http://localhost:$HGPORT uncompressed-gzip-packed-unsupported-requirements | 504 $ hg clone -U --stream http://localhost:$HGPORT uncompressed-gzip-packed-unsupported-requirements |
505 no compatible clone bundles available on server; falling back to regular clone | 505 no compatible clone bundles available on server; falling back to regular clone |
506 (you may want to report this to the server operator) | 506 (you may want to report this to the server operator) |
507 streaming all changes | 507 streaming all changes |
508 4 files to transfer, 613 bytes of data | 508 4 files to transfer, 613 bytes of data |
509 transferred 613 bytes in * seconds (*) (glob) | 509 transferred 613 bytes in * seconds (*) (glob) |