Show More
@@ -18,17 +18,17 b' Server setup' | |||
|
18 | 18 | $ mkdir dir |
|
19 | 19 | $ mkdir dir/src |
|
20 | 20 | $ cd dir/src |
|
21 |
$ for x in `$TESTDIR/seq.py 20`; do echo $x > " |
|
|
21 | $ for x in `$TESTDIR/seq.py 20`; do echo $x > "F$x"; hg add "F$x"; hg commit -m "Commit src $x"; done | |
|
22 | 22 | |
|
23 | 23 | $ cd .. |
|
24 | 24 | $ mkdir tests |
|
25 | 25 | $ cd tests |
|
26 |
$ for x in `$TESTDIR/seq.py 20`; do echo $x > " |
|
|
26 | $ for x in `$TESTDIR/seq.py 20`; do echo $x > "F$x"; hg add "F$x"; hg commit -m "Commit src $x"; done | |
|
27 | 27 | $ cd ../../.. |
|
28 | 28 | |
|
29 | 29 | Trying to stream clone when the server does not support it |
|
30 | 30 | |
|
31 |
$ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/ |
|
|
31 | $ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/F10" --stream | |
|
32 | 32 | streaming all changes |
|
33 | 33 | remote: abort: server does not support narrow stream clones |
|
34 | 34 | abort: pull failed on remote |
@@ -41,7 +41,7 b' Enable stream clone on the server' | |||
|
41 | 41 | |
|
42 | 42 | Cloning a specific file when stream clone is supported |
|
43 | 43 | |
|
44 |
$ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/ |
|
|
44 | $ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/F10" --stream | |
|
45 | 45 | streaming all changes |
|
46 | 46 | * files to transfer, * KB of data (glob) |
|
47 | 47 | transferred * KB in * seconds (* */sec) (glob) |
@@ -49,7 +49,7 b' Cloning a specific file when stream clon' | |||
|
49 | 49 | $ cd narrow |
|
50 | 50 | $ ls |
|
51 | 51 | $ hg tracked |
|
52 |
I path:dir/src/ |
|
|
52 | I path:dir/src/F10 | |
|
53 | 53 | |
|
54 | 54 | Making sure we have the correct set of requirements |
|
55 | 55 |
General Comments 0
You need to be logged in to leave comments.
Login now