##// END OF EJS Templates
test: enable sparse-revlog for test-narrow-clone-no-ellipsis.t...
Boris Feld -
r40934:eecc7a2e default
parent child Browse files
Show More
@@ -1,161 +1,168
1 TRANSITIONAL CONFIG
2 $ cat << EOF >> $HGRCPATH
3 > [format]
4 > sparse-revlog = yes
5 > EOF
6
1 $ . "$TESTDIR/narrow-library.sh"
7 $ . "$TESTDIR/narrow-library.sh"
2
8
3 $ hg init master
9 $ hg init master
4 $ cd master
10 $ cd master
5 $ mkdir dir
11 $ mkdir dir
6 $ mkdir dir/src
12 $ mkdir dir/src
7 $ cd dir/src
13 $ cd dir/src
8 $ for x in `$TESTDIR/seq.py 20`; do echo $x > "f$x"; hg add "f$x"; hg commit -m "Commit src $x"; done
14 $ for x in `$TESTDIR/seq.py 20`; do echo $x > "f$x"; hg add "f$x"; hg commit -m "Commit src $x"; done
9 $ cd ..
15 $ cd ..
10 $ mkdir tests
16 $ mkdir tests
11 $ cd tests
17 $ cd tests
12 $ for x in `$TESTDIR/seq.py 20`; do echo $x > "t$x"; hg add "t$x"; hg commit -m "Commit test $x"; done
18 $ for x in `$TESTDIR/seq.py 20`; do echo $x > "t$x"; hg add "t$x"; hg commit -m "Commit test $x"; done
13 $ cd ../../..
19 $ cd ../../..
14
20
15 narrow clone a file, f10
21 narrow clone a file, f10
16
22
17 $ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/f10"
23 $ hg clone --narrow ssh://user@dummy/master narrow --noupdate --include "dir/src/f10"
18 requesting all changes
24 requesting all changes
19 adding changesets
25 adding changesets
20 adding manifests
26 adding manifests
21 adding file changes
27 adding file changes
22 added 40 changesets with 1 changes to 1 files
28 added 40 changesets with 1 changes to 1 files
23 new changesets *:* (glob)
29 new changesets *:* (glob)
24 $ cd narrow
30 $ cd narrow
25 $ cat .hg/requires | grep -v generaldelta
31 $ cat .hg/requires | grep -v generaldelta
26 dotencode
32 dotencode
27 fncache
33 fncache
28 narrowhg-experimental
34 narrowhg-experimental
29 revlogv1
35 revlogv1
36 sparserevlog
30 store
37 store
31 testonly-simplestore (reposimplestore !)
38 testonly-simplestore (reposimplestore !)
32
39
33 $ hg tracked
40 $ hg tracked
34 I path:dir/src/f10
41 I path:dir/src/f10
35 $ hg update
42 $ hg update
36 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
43 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
37 $ find * | sort
44 $ find * | sort
38 dir
45 dir
39 dir/src
46 dir/src
40 dir/src/f10
47 dir/src/f10
41 $ cat dir/src/f10
48 $ cat dir/src/f10
42 10
49 10
43
50
44 $ cd ..
51 $ cd ..
45
52
46 narrow clone a directory, tests/, except tests/t19
53 narrow clone a directory, tests/, except tests/t19
47
54
48 $ hg clone --narrow ssh://user@dummy/master narrowdir --noupdate --include "dir/tests/" --exclude "dir/tests/t19"
55 $ hg clone --narrow ssh://user@dummy/master narrowdir --noupdate --include "dir/tests/" --exclude "dir/tests/t19"
49 requesting all changes
56 requesting all changes
50 adding changesets
57 adding changesets
51 adding manifests
58 adding manifests
52 adding file changes
59 adding file changes
53 added 40 changesets with 19 changes to 19 files
60 added 40 changesets with 19 changes to 19 files
54 new changesets *:* (glob)
61 new changesets *:* (glob)
55 $ cd narrowdir
62 $ cd narrowdir
56 $ hg tracked
63 $ hg tracked
57 I path:dir/tests
64 I path:dir/tests
58 X path:dir/tests/t19
65 X path:dir/tests/t19
59 $ hg update
66 $ hg update
60 19 files updated, 0 files merged, 0 files removed, 0 files unresolved
67 19 files updated, 0 files merged, 0 files removed, 0 files unresolved
61 $ find * | sort
68 $ find * | sort
62 dir
69 dir
63 dir/tests
70 dir/tests
64 dir/tests/t1
71 dir/tests/t1
65 dir/tests/t10
72 dir/tests/t10
66 dir/tests/t11
73 dir/tests/t11
67 dir/tests/t12
74 dir/tests/t12
68 dir/tests/t13
75 dir/tests/t13
69 dir/tests/t14
76 dir/tests/t14
70 dir/tests/t15
77 dir/tests/t15
71 dir/tests/t16
78 dir/tests/t16
72 dir/tests/t17
79 dir/tests/t17
73 dir/tests/t18
80 dir/tests/t18
74 dir/tests/t2
81 dir/tests/t2
75 dir/tests/t20
82 dir/tests/t20
76 dir/tests/t3
83 dir/tests/t3
77 dir/tests/t4
84 dir/tests/t4
78 dir/tests/t5
85 dir/tests/t5
79 dir/tests/t6
86 dir/tests/t6
80 dir/tests/t7
87 dir/tests/t7
81 dir/tests/t8
88 dir/tests/t8
82 dir/tests/t9
89 dir/tests/t9
83
90
84 $ cd ..
91 $ cd ..
85
92
86 narrow clone everything but a directory (tests/)
93 narrow clone everything but a directory (tests/)
87
94
88 $ hg clone --narrow ssh://user@dummy/master narrowroot --noupdate --exclude "dir/tests"
95 $ hg clone --narrow ssh://user@dummy/master narrowroot --noupdate --exclude "dir/tests"
89 requesting all changes
96 requesting all changes
90 adding changesets
97 adding changesets
91 adding manifests
98 adding manifests
92 adding file changes
99 adding file changes
93 added 40 changesets with 20 changes to 20 files
100 added 40 changesets with 20 changes to 20 files
94 new changesets *:* (glob)
101 new changesets *:* (glob)
95 $ cd narrowroot
102 $ cd narrowroot
96 $ hg tracked
103 $ hg tracked
97 I path:.
104 I path:.
98 X path:dir/tests
105 X path:dir/tests
99 $ hg update
106 $ hg update
100 20 files updated, 0 files merged, 0 files removed, 0 files unresolved
107 20 files updated, 0 files merged, 0 files removed, 0 files unresolved
101 $ find * | sort
108 $ find * | sort
102 dir
109 dir
103 dir/src
110 dir/src
104 dir/src/f1
111 dir/src/f1
105 dir/src/f10
112 dir/src/f10
106 dir/src/f11
113 dir/src/f11
107 dir/src/f12
114 dir/src/f12
108 dir/src/f13
115 dir/src/f13
109 dir/src/f14
116 dir/src/f14
110 dir/src/f15
117 dir/src/f15
111 dir/src/f16
118 dir/src/f16
112 dir/src/f17
119 dir/src/f17
113 dir/src/f18
120 dir/src/f18
114 dir/src/f19
121 dir/src/f19
115 dir/src/f2
122 dir/src/f2
116 dir/src/f20
123 dir/src/f20
117 dir/src/f3
124 dir/src/f3
118 dir/src/f4
125 dir/src/f4
119 dir/src/f5
126 dir/src/f5
120 dir/src/f6
127 dir/src/f6
121 dir/src/f7
128 dir/src/f7
122 dir/src/f8
129 dir/src/f8
123 dir/src/f9
130 dir/src/f9
124
131
125 $ cd ..
132 $ cd ..
126
133
127 Testing the --narrowspec flag to clone
134 Testing the --narrowspec flag to clone
128
135
129 $ cat >> narrowspecs <<EOF
136 $ cat >> narrowspecs <<EOF
130 > %include foo
137 > %include foo
131 > [include]
138 > [include]
132 > path:dir/tests/
139 > path:dir/tests/
133 > path:dir/src/f12
140 > path:dir/src/f12
134 > EOF
141 > EOF
135
142
136 $ hg clone ssh://user@dummy/master specfile --narrowspec narrowspecs
143 $ hg clone ssh://user@dummy/master specfile --narrowspec narrowspecs
137 reading narrowspec from '$TESTTMP/narrowspecs'
144 reading narrowspec from '$TESTTMP/narrowspecs'
138 abort: cannot specify other files using '%include' in narrowspec
145 abort: cannot specify other files using '%include' in narrowspec
139 [255]
146 [255]
140
147
141 $ cat > narrowspecs <<EOF
148 $ cat > narrowspecs <<EOF
142 > [include]
149 > [include]
143 > path:dir/tests/
150 > path:dir/tests/
144 > path:dir/src/f12
151 > path:dir/src/f12
145 > EOF
152 > EOF
146
153
147 $ hg clone ssh://user@dummy/master specfile --narrowspec narrowspecs
154 $ hg clone ssh://user@dummy/master specfile --narrowspec narrowspecs
148 reading narrowspec from '$TESTTMP/narrowspecs'
155 reading narrowspec from '$TESTTMP/narrowspecs'
149 requesting all changes
156 requesting all changes
150 adding changesets
157 adding changesets
151 adding manifests
158 adding manifests
152 adding file changes
159 adding file changes
153 added 40 changesets with 21 changes to 21 files
160 added 40 changesets with 21 changes to 21 files
154 new changesets 681085829a73:26ce255d5b5d
161 new changesets 681085829a73:26ce255d5b5d
155 updating to branch default
162 updating to branch default
156 21 files updated, 0 files merged, 0 files removed, 0 files unresolved
163 21 files updated, 0 files merged, 0 files removed, 0 files unresolved
157 $ cd specfile
164 $ cd specfile
158 $ hg tracked
165 $ hg tracked
159 I path:dir/src/f12
166 I path:dir/src/f12
160 I path:dir/tests
167 I path:dir/tests
161 $ cd ..
168 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now