##// END OF EJS Templates
tests: unify test-clone-r
Adrian Buehlmann -
r11925:1d03c927 default
parent child Browse files
Show More
@@ -1,59 +1,229 b''
1 #!/bin/sh
1 $ hg init test
2 $ cd test
3
4 $ echo 0 >> afile
5 $ hg add afile
6 $ hg commit -m "0.0"
7
8 $ echo 1 >> afile
9 $ hg commit -m "0.1"
10
11 $ echo 2 >> afile
12 $ hg commit -m "0.2"
13
14 $ echo 3 >> afile
15 $ hg commit -m "0.3"
16
17 $ hg update -C 0
18 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
19
20 $ echo 1 >> afile
21 $ hg commit -m "1.1"
22 created new head
23
24 $ echo 2 >> afile
25 $ hg commit -m "1.2"
26
27 $ echo a line > fred
28 $ echo 3 >> afile
29 $ hg add fred
30 $ hg commit -m "1.3"
31 $ hg mv afile adifferentfile
32 $ hg commit -m "1.3m"
33
34 $ hg update -C 3
35 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
36
37 $ hg mv afile anotherfile
38 $ hg commit -m "0.3m"
39
40 $ hg debugindex .hg/store/data/afile.i
41 rev offset length base linkrev nodeid p1 p2
42 0 0 3 0 0 362fef284ce2 000000000000 000000000000
43 1 3 5 1 1 125144f7e028 362fef284ce2 000000000000
44 2 8 7 2 2 4c982badb186 125144f7e028 000000000000
45 3 15 9 3 3 19b1fc555737 4c982badb186 000000000000
46
47 $ hg debugindex .hg/store/data/adifferentfile.i
48 rev offset length base linkrev nodeid p1 p2
49 0 0 75 0 7 2565f3199a74 000000000000 000000000000
50
51 $ hg debugindex .hg/store/data/anotherfile.i
52 rev offset length base linkrev nodeid p1 p2
53 0 0 75 0 8 2565f3199a74 000000000000 000000000000
54
55 $ hg debugindex .hg/store/data/fred.i
56 rev offset length base linkrev nodeid p1 p2
57 0 0 8 0 6 12ab3bcc5ea4 000000000000 000000000000
58
59 $ hg debugindex .hg/store/00manifest.i
60 rev offset length base linkrev nodeid p1 p2
61 0 0 48 0 0 43eadb1d2d06 000000000000 000000000000
62 1 48 48 1 1 8b89697eba2c 43eadb1d2d06 000000000000
63 2 96 48 2 2 626a32663c2f 8b89697eba2c 000000000000
64 3 144 48 3 3 f54c32f13478 626a32663c2f 000000000000
65 4 192 58 3 6 de68e904d169 626a32663c2f 000000000000
66 5 250 68 3 7 09bb521d218d de68e904d169 000000000000
67 6 318 54 6 8 1fde233dfb0f f54c32f13478 000000000000
68
69 $ hg verify
70 checking changesets
71 checking manifests
72 crosschecking files in changesets and manifests
73 checking files
74 4 files, 9 changesets, 7 total revisions
75
76 $ cd ..
77
78 $ for i in 0 1 2 3 4 5 6 7 8; do
79 > echo
80 > echo ---- hg clone -r "$i" test test-"$i"
81 > hg clone -r "$i" test test-"$i"
82 > cd test-"$i"
83 > hg verify
84 > cd ..
85 > done
86
87 ---- hg clone -r 0 test test-0
88 requesting all changes
89 adding changesets
90 adding manifests
91 adding file changes
92 added 1 changesets with 1 changes to 1 files
93 updating to branch default
94 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
95 checking changesets
96 checking manifests
97 crosschecking files in changesets and manifests
98 checking files
99 1 files, 1 changesets, 1 total revisions
100
101 ---- hg clone -r 1 test test-1
102 requesting all changes
103 adding changesets
104 adding manifests
105 adding file changes
106 added 2 changesets with 2 changes to 1 files
107 updating to branch default
108 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
109 checking changesets
110 checking manifests
111 crosschecking files in changesets and manifests
112 checking files
113 1 files, 2 changesets, 2 total revisions
2
114
3 hg init test
115 ---- hg clone -r 2 test test-2
4 cd test
116 requesting all changes
5 cat >>afile <<EOF
117 adding changesets
6 0
118 adding manifests
7 EOF
119 adding file changes
8 hg add afile
120 added 3 changesets with 3 changes to 1 files
9 hg commit -m "0.0"
121 updating to branch default
10 cat >>afile <<EOF
122 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
11 1
123 checking changesets
12 EOF
124 checking manifests
13 hg commit -m "0.1"
125 crosschecking files in changesets and manifests
14 cat >>afile <<EOF
126 checking files
15 2
127 1 files, 3 changesets, 3 total revisions
16 EOF
128
17 hg commit -m "0.2"
129 ---- hg clone -r 3 test test-3
18 cat >>afile <<EOF
130 requesting all changes
19 3
131 adding changesets
20 EOF
132 adding manifests
21 hg commit -m "0.3"
133 adding file changes
22 hg update -C 0
134 added 4 changesets with 4 changes to 1 files
23 cat >>afile <<EOF
135 updating to branch default
24 1
136 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
25 EOF
137 checking changesets
26 hg commit -m "1.1"
138 checking manifests
27 cat >>afile <<EOF
139 crosschecking files in changesets and manifests
28 2
140 checking files
29 EOF
141 1 files, 4 changesets, 4 total revisions
30 hg commit -m "1.2"
142
31 cat >fred <<EOF
143 ---- hg clone -r 4 test test-4
32 a line
144 requesting all changes
33 EOF
145 adding changesets
34 cat >>afile <<EOF
146 adding manifests
35 3
147 adding file changes
36 EOF
148 added 2 changesets with 2 changes to 1 files
37 hg add fred
149 updating to branch default
38 hg commit -m "1.3"
150 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
39 hg mv afile adifferentfile
151 checking changesets
40 hg commit -m "1.3m"
152 checking manifests
41 hg update -C 3
153 crosschecking files in changesets and manifests
42 hg mv afile anotherfile
154 checking files
43 hg commit -m "0.3m"
155 1 files, 2 changesets, 2 total revisions
44 hg debugindex .hg/store/data/afile.i
156
45 hg debugindex .hg/store/data/adifferentfile.i
157 ---- hg clone -r 5 test test-5
46 hg debugindex .hg/store/data/anotherfile.i
158 requesting all changes
47 hg debugindex .hg/store/data/fred.i
159 adding changesets
48 hg debugindex .hg/store/00manifest.i
160 adding manifests
49 hg verify
161 adding file changes
50 cd ..
162 added 3 changesets with 3 changes to 1 files
51 for i in 0 1 2 3 4 5 6 7 8; do
163 updating to branch default
52 hg clone -r "$i" test test-"$i"
164 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
53 cd test-"$i"
165 checking changesets
54 hg verify
166 checking manifests
55 cd ..
167 crosschecking files in changesets and manifests
56 done
168 checking files
57 cd test-8
169 1 files, 3 changesets, 3 total revisions
58 hg pull ../test-7
170
59 hg verify
171 ---- hg clone -r 6 test test-6
172 requesting all changes
173 adding changesets
174 adding manifests
175 adding file changes
176 added 4 changesets with 5 changes to 2 files
177 updating to branch default
178 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
179 checking changesets
180 checking manifests
181 crosschecking files in changesets and manifests
182 checking files
183 2 files, 4 changesets, 5 total revisions
184
185 ---- hg clone -r 7 test test-7
186 requesting all changes
187 adding changesets
188 adding manifests
189 adding file changes
190 added 5 changesets with 6 changes to 3 files
191 updating to branch default
192 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
193 checking changesets
194 checking manifests
195 crosschecking files in changesets and manifests
196 checking files
197 3 files, 5 changesets, 6 total revisions
198
199 ---- hg clone -r 8 test test-8
200 requesting all changes
201 adding changesets
202 adding manifests
203 adding file changes
204 added 5 changesets with 5 changes to 2 files
205 updating to branch default
206 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
207 checking changesets
208 checking manifests
209 crosschecking files in changesets and manifests
210 checking files
211 2 files, 5 changesets, 5 total revisions
212
213 $ cd test-8
214 $ hg pull ../test-7
215 pulling from ../test-7
216 searching for changes
217 adding changesets
218 adding manifests
219 adding file changes
220 added 4 changesets with 2 changes to 3 files (+1 heads)
221 (run 'hg heads' to see heads, 'hg merge' to merge)
222 $ hg verify
223 checking changesets
224 checking manifests
225 crosschecking files in changesets and manifests
226 checking files
227 4 files, 9 changesets, 7 total revisions
228 $ cd ..
229
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now