comparison tests/test-http.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
comparison
equal deleted inserted replaced
34392:aea6344e989b 34393:fffd3369aa83
29 $ cd .. 29 $ cd ..
30 $ cat hg1.pid hg2.pid >> $DAEMON_PIDS 30 $ cat hg1.pid hg2.pid >> $DAEMON_PIDS
31 31
32 clone via stream 32 clone via stream
33 33
34 $ hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 34 $ hg clone --stream http://localhost:$HGPORT/ copy 2>&1
35 streaming all changes 35 streaming all changes
36 6 files to transfer, 606 bytes of data 36 6 files to transfer, 606 bytes of data
37 transferred * bytes in * seconds (*/sec) (glob) 37 transferred * bytes in * seconds (*/sec) (glob)
38 searching for changes 38 searching for changes
39 no changes found 39 no changes found
46 checking files 46 checking files
47 4 files, 1 changesets, 4 total revisions 47 4 files, 1 changesets, 4 total revisions
48 48
49 try to clone via stream, should use pull instead 49 try to clone via stream, should use pull instead
50 50
51 $ hg clone --uncompressed http://localhost:$HGPORT1/ copy2 51 $ hg clone --stream http://localhost:$HGPORT1/ copy2
52 warning: stream clone requested but server has them disabled 52 warning: stream clone requested but server has them disabled
53 requesting all changes 53 requesting all changes
54 adding changesets 54 adding changesets
55 adding manifests 55 adding manifests
56 adding file changes 56 adding file changes
64 > from mercurial import localrepo 64 > from mercurial import localrepo
65 > def extsetup(ui): 65 > def extsetup(ui):
66 > localrepo.localrepository.supportedformats.remove('generaldelta') 66 > localrepo.localrepository.supportedformats.remove('generaldelta')
67 > EOF 67 > EOF
68 68
69 $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --uncompressed http://localhost:$HGPORT/ copy3 69 $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --stream http://localhost:$HGPORT/ copy3
70 warning: stream clone requested but client is missing requirements: generaldelta 70 warning: stream clone requested but client is missing requirements: generaldelta
71 (see https://www.mercurial-scm.org/wiki/MissingRequirement for more information) 71 (see https://www.mercurial-scm.org/wiki/MissingRequirement for more information)
72 requesting all changes 72 requesting all changes
73 adding changesets 73 adding changesets
74 adding manifests 74 adding manifests
365 (remove --pull if specified or upgrade Mercurial) 365 (remove --pull if specified or upgrade Mercurial)
366 [255] 366 [255]
367 367
368 ... but keep stream clones working 368 ... but keep stream clones working
369 369
370 $ hg clone --uncompressed --noupdate http://localhost:$HGPORT1/ test-stream-clone 370 $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone
371 streaming all changes 371 streaming all changes
372 * files to transfer, * of data (glob) 372 * files to transfer, * of data (glob)
373 transferred * in * seconds (*/sec) (glob) 373 transferred * in * seconds (*/sec) (glob)
374 searching for changes 374 searching for changes
375 no changes found 375 no changes found