Mercurial > public > mercurial-scm > hg
diff tests/test-clone-uncompressed.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 | 10e162bb9bf5 |
children | a6d95a8b7243 |
line wrap: on
line diff
--- a/tests/test-clone-uncompressed.t Sun Oct 01 10:17:11 2017 +0100 +++ b/tests/test-clone-uncompressed.t Sun Oct 01 11:29:20 2017 +0100 @@ -18,7 +18,16 @@ Basic clone - $ hg clone --uncompressed -U http://localhost:$HGPORT clone1 + $ hg clone --stream -U http://localhost:$HGPORT clone1 + streaming all changes + 1027 files to transfer, 96.3 KB of data + transferred 96.3 KB in * seconds (*/sec) (glob) + searching for changes + no changes found + +--uncompressed is an alias to --stream + + $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed streaming all changes 1027 files to transfer, 96.3 KB of data transferred 96.3 KB in * seconds (*/sec) (glob) @@ -27,7 +36,7 @@ Clone with background file closing enabled - $ hg --debug --config worker.backgroundclose=true --config worker.backgroundcloseminfilecount=1 clone --uncompressed -U http://localhost:$HGPORT clone-background | grep -v adding + $ hg --debug --config worker.backgroundclose=true --config worker.backgroundcloseminfilecount=1 clone --stream -U http://localhost:$HGPORT clone-background | grep -v adding using http://localhost:$HGPORT/ sending capabilities command sending branchmap command @@ -52,7 +61,7 @@ Cannot stream clone when there are secret changesets $ hg -R server phase --force --secret -r tip - $ hg clone --uncompressed -U http://localhost:$HGPORT secret-denied + $ hg clone --stream -U http://localhost:$HGPORT secret-denied warning: stream clone requested but server has them disabled requesting all changes adding changesets @@ -69,7 +78,7 @@ $ cat hg.pid > $DAEMON_PIDS $ cd .. - $ hg clone --uncompressed -U http://localhost:$HGPORT secret-allowed + $ hg clone --stream -U http://localhost:$HGPORT secret-allowed streaming all changes 1027 files to transfer, 96.3 KB of data transferred 96.3 KB in * seconds (*/sec) (glob) @@ -101,7 +110,7 @@ $ cat hg.pid > $DAEMON_PIDS $ cd .. - $ hg clone --uncompressed http://localhost:$HGPORT secret-full-disabled + $ hg clone --stream http://localhost:$HGPORT secret-full-disabled warning: stream clone requested but server has them disabled requesting all changes remote: abort: server has pull-based clones disabled @@ -113,7 +122,7 @@ (This is just a test over behavior: if you have access to the repo's files, there is no security so it isn't important to prevent a clone here.) - $ hg clone -U --uncompressed server local-secret + $ hg clone -U --stream server local-secret warning: stream clone requested but server has them disabled requesting all changes adding changesets @@ -151,7 +160,7 @@ clone while modifying the repo between stating file with write lock and actually serving file content - $ hg clone -q --uncompressed -U http://localhost:$HGPORT1 clone & + $ hg clone -q --stream -U http://localhost:$HGPORT1 clone & $ sleep 1 $ echo >> repo/f1 $ echo >> repo/f2