comparison tests/test-http-bundle1.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 d0d9a4fca59b
children a6d95a8b7243
comparison
equal deleted inserted replaced
34392:aea6344e989b 34393:fffd3369aa83
38 $ cd .. 38 $ cd ..
39 $ cat hg1.pid hg2.pid >> $DAEMON_PIDS 39 $ cat hg1.pid hg2.pid >> $DAEMON_PIDS
40 40
41 clone via stream 41 clone via stream
42 42
43 $ hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 43 $ hg clone --stream http://localhost:$HGPORT/ copy 2>&1
44 streaming all changes 44 streaming all changes
45 6 files to transfer, 606 bytes of data 45 6 files to transfer, 606 bytes of data
46 transferred * bytes in * seconds (*/sec) (glob) 46 transferred * bytes in * seconds (*/sec) (glob)
47 searching for changes 47 searching for changes
48 no changes found 48 no changes found
55 checking files 55 checking files
56 4 files, 1 changesets, 4 total revisions 56 4 files, 1 changesets, 4 total revisions
57 57
58 try to clone via stream, should use pull instead 58 try to clone via stream, should use pull instead
59 59
60 $ hg clone --uncompressed http://localhost:$HGPORT1/ copy2 60 $ hg clone --stream http://localhost:$HGPORT1/ copy2
61 warning: stream clone requested but server has them disabled 61 warning: stream clone requested but server has them disabled
62 requesting all changes 62 requesting all changes
63 adding changesets 63 adding changesets
64 adding manifests 64 adding manifests
65 adding file changes 65 adding file changes
73 > from mercurial import localrepo 73 > from mercurial import localrepo
74 > def extsetup(ui): 74 > def extsetup(ui):
75 > localrepo.localrepository.supportedformats.remove('generaldelta') 75 > localrepo.localrepository.supportedformats.remove('generaldelta')
76 > EOF 76 > EOF
77 77
78 $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --uncompressed http://localhost:$HGPORT/ copy3 78 $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --stream http://localhost:$HGPORT/ copy3
79 warning: stream clone requested but client is missing requirements: generaldelta 79 warning: stream clone requested but client is missing requirements: generaldelta
80 (see https://www.mercurial-scm.org/wiki/MissingRequirement for more information) 80 (see https://www.mercurial-scm.org/wiki/MissingRequirement for more information)
81 requesting all changes 81 requesting all changes
82 adding changesets 82 adding changesets
83 adding manifests 83 adding manifests
376 server has pull-based clones disabled 376 server has pull-based clones disabled
377 [255] 377 [255]
378 378
379 ... but keep stream clones working 379 ... but keep stream clones working
380 380
381 $ hg clone --uncompressed --noupdate http://localhost:$HGPORT1/ test-stream-clone 381 $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone
382 streaming all changes 382 streaming all changes
383 * files to transfer, * of data (glob) 383 * files to transfer, * of data (glob)
384 transferred * in * seconds (* KB/sec) (glob) 384 transferred * in * seconds (* KB/sec) (glob)
385 searching for changes 385 searching for changes
386 no changes found 386 no changes found