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