Mercurial > hg
comparison tests/test-ssh.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 | eb586ed5d8ce |
comparison
equal
deleted
inserted
replaced
34392:aea6344e989b | 34393:fffd3369aa83 |
---|---|
50 abort: no suitable response from remote hg! | 50 abort: no suitable response from remote hg! |
51 [255] | 51 [255] |
52 | 52 |
53 clone remote via stream | 53 clone remote via stream |
54 | 54 |
55 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --uncompressed ssh://user@dummy/remote local-stream | 55 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --stream ssh://user@dummy/remote local-stream |
56 streaming all changes | 56 streaming all changes |
57 4 files to transfer, 602 bytes of data | 57 4 files to transfer, 602 bytes of data |
58 transferred 602 bytes in * seconds (*) (glob) | 58 transferred 602 bytes in * seconds (*) (glob) |
59 searching for changes | 59 searching for changes |
60 no changes found | 60 no changes found |
72 $ cd .. | 72 $ cd .. |
73 | 73 |
74 clone bookmarks via stream | 74 clone bookmarks via stream |
75 | 75 |
76 $ hg -R local-stream book mybook | 76 $ hg -R local-stream book mybook |
77 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --uncompressed ssh://user@dummy/local-stream stream2 | 77 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" --stream ssh://user@dummy/local-stream stream2 |
78 streaming all changes | 78 streaming all changes |
79 4 files to transfer, 602 bytes of data | 79 4 files to transfer, 602 bytes of data |
80 transferred 602 bytes in * seconds (*) (glob) | 80 transferred 602 bytes in * seconds (*) (glob) |
81 searching for changes | 81 searching for changes |
82 no changes found | 82 no changes found |