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