Show More
@@ -1,86 +1,86 b'' | |||||
1 | #testcases tree flat |
|
1 | #testcases tree flat | |
2 |
|
2 | |||
3 | Tests narrow stream clones |
|
3 | Tests narrow stream clones | |
4 |
|
4 | |||
5 | $ . "$TESTDIR/narrow-library.sh" |
|
5 | $ . "$TESTDIR/narrow-library.sh" | |
6 |
|
6 | |||
7 | #if tree |
|
7 | #if tree | |
8 | $ cat << EOF >> $HGRCPATH |
|
8 | $ cat << EOF >> $HGRCPATH | |
9 | > [experimental] |
|
9 | > [experimental] | |
10 | > treemanifest = 1 |
|
10 | > treemanifest = 1 | |
11 | > EOF |
|
11 | > EOF | |
12 | #endif |
|
12 | #endif | |
13 |
|
13 | |||
14 | Server setup |
|
14 | Server setup | |
15 |
|
15 | |||
16 | $ hg init master |
|
16 | $ hg init master | |
17 | $ cd master |
|
17 | $ cd master | |
18 | $ mkdir dir |
|
18 | $ mkdir dir | |
19 | $ mkdir dir/src |
|
19 | $ mkdir dir/src | |
20 | $ cd dir/src |
|
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 | $ cd .. |
|
23 | $ cd .. | |
24 | $ mkdir tests |
|
24 | $ mkdir tests | |
25 | $ cd tests |
|
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 | $ cd ../../.. |
|
27 | $ cd ../../.. | |
28 |
|
28 | |||
29 | Trying to stream clone when the server does not support it |
|
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 | streaming all changes |
|
32 | streaming all changes | |
33 | remote: abort: server does not support narrow stream clones |
|
33 | remote: abort: server does not support narrow stream clones | |
34 | abort: pull failed on remote |
|
34 | abort: pull failed on remote | |
35 | [255] |
|
35 | [255] | |
36 |
|
36 | |||
37 | Enable stream clone on the server |
|
37 | Enable stream clone on the server | |
38 |
|
38 | |||
39 | $ echo "[experimental]" >> master/.hg/hgrc |
|
39 | $ echo "[experimental]" >> master/.hg/hgrc | |
40 | $ echo "server.stream-narrow-clones=True" >> master/.hg/hgrc |
|
40 | $ echo "server.stream-narrow-clones=True" >> master/.hg/hgrc | |
41 |
|
41 | |||
42 | Cloning a specific file when stream clone is supported |
|
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 | streaming all changes |
|
45 | streaming all changes | |
46 | * files to transfer, * KB of data (glob) |
|
46 | * files to transfer, * KB of data (glob) | |
47 | transferred * KB in * seconds (* */sec) (glob) |
|
47 | transferred * KB in * seconds (* */sec) (glob) | |
48 |
|
48 | |||
49 | $ cd narrow |
|
49 | $ cd narrow | |
50 | $ ls |
|
50 | $ ls | |
51 | $ hg tracked |
|
51 | $ hg tracked | |
52 |
I path:dir/src/ |
|
52 | I path:dir/src/F10 | |
53 |
|
53 | |||
54 | Making sure we have the correct set of requirements |
|
54 | Making sure we have the correct set of requirements | |
55 |
|
55 | |||
56 | $ cat .hg/requires |
|
56 | $ cat .hg/requires | |
57 | dotencode |
|
57 | dotencode | |
58 | fncache |
|
58 | fncache | |
59 | generaldelta |
|
59 | generaldelta | |
60 | narrowhg-experimental |
|
60 | narrowhg-experimental | |
61 | revlogv1 |
|
61 | revlogv1 | |
62 | store |
|
62 | store | |
63 | treemanifest (tree !) |
|
63 | treemanifest (tree !) | |
64 |
|
64 | |||
65 | Making sure store has the required files |
|
65 | Making sure store has the required files | |
66 |
|
66 | |||
67 | $ ls .hg/store/ |
|
67 | $ ls .hg/store/ | |
68 | 00changelog.i |
|
68 | 00changelog.i | |
69 | 00manifest.i |
|
69 | 00manifest.i | |
70 | data |
|
70 | data | |
71 | fncache |
|
71 | fncache | |
72 | meta (tree !) |
|
72 | meta (tree !) | |
73 | narrowspec |
|
73 | narrowspec | |
74 | undo |
|
74 | undo | |
75 | undo.backupfiles |
|
75 | undo.backupfiles | |
76 | undo.phaseroots |
|
76 | undo.phaseroots | |
77 |
|
77 | |||
78 | Checking that repository has all the required data and not broken |
|
78 | Checking that repository has all the required data and not broken | |
79 |
|
79 | |||
80 | $ hg verify |
|
80 | $ hg verify | |
81 | checking changesets |
|
81 | checking changesets | |
82 | checking manifests |
|
82 | checking manifests | |
83 | checking directory manifests (tree !) |
|
83 | checking directory manifests (tree !) | |
84 | crosschecking files in changesets and manifests |
|
84 | crosschecking files in changesets and manifests | |
85 | checking files |
|
85 | checking files | |
86 | checked 40 changesets with 1 changes to 1 files |
|
86 | checked 40 changesets with 1 changes to 1 files |
General Comments 0
You need to be logged in to leave comments.
Login now