##// 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 ..
2 77
3 hg init test
4 cd test
5 cat >>afile <<EOF
6 0
7 EOF
8 hg add afile
9 hg commit -m "0.0"
10 cat >>afile <<EOF
11 1
12 EOF
13 hg commit -m "0.1"
14 cat >>afile <<EOF
15 2
16 EOF
17 hg commit -m "0.2"
18 cat >>afile <<EOF
19 3
20 EOF
21 hg commit -m "0.3"
22 hg update -C 0
23 cat >>afile <<EOF
24 1
25 EOF
26 hg commit -m "1.1"
27 cat >>afile <<EOF
28 2
29 EOF
30 hg commit -m "1.2"
31 cat >fred <<EOF
32 a line
33 EOF
34 cat >>afile <<EOF
35 3
36 EOF
37 hg add fred
38 hg commit -m "1.3"
39 hg mv afile adifferentfile
40 hg commit -m "1.3m"
41 hg update -C 3
42 hg mv afile anotherfile
43 hg commit -m "0.3m"
44 hg debugindex .hg/store/data/afile.i
45 hg debugindex .hg/store/data/adifferentfile.i
46 hg debugindex .hg/store/data/anotherfile.i
47 hg debugindex .hg/store/data/fred.i
48 hg debugindex .hg/store/00manifest.i
49 hg verify
50 cd ..
51 for i in 0 1 2 3 4 5 6 7 8; do
52 hg clone -r "$i" test test-"$i"
53 cd test-"$i"
54 hg verify
55 cd ..
56 done
57 cd test-8
58 hg pull ../test-7
59 hg verify
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
114
115 ---- hg clone -r 2 test test-2
116 requesting all changes
117 adding changesets
118 adding manifests
119 adding file changes
120 added 3 changesets with 3 changes to 1 files
121 updating to branch default
122 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
123 checking changesets
124 checking manifests
125 crosschecking files in changesets and manifests
126 checking files
127 1 files, 3 changesets, 3 total revisions
128
129 ---- hg clone -r 3 test test-3
130 requesting all changes
131 adding changesets
132 adding manifests
133 adding file changes
134 added 4 changesets with 4 changes to 1 files
135 updating to branch default
136 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
137 checking changesets
138 checking manifests
139 crosschecking files in changesets and manifests
140 checking files
141 1 files, 4 changesets, 4 total revisions
142
143 ---- hg clone -r 4 test test-4
144 requesting all changes
145 adding changesets
146 adding manifests
147 adding file changes
148 added 2 changesets with 2 changes to 1 files
149 updating to branch default
150 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
151 checking changesets
152 checking manifests
153 crosschecking files in changesets and manifests
154 checking files
155 1 files, 2 changesets, 2 total revisions
156
157 ---- hg clone -r 5 test test-5
158 requesting all changes
159 adding changesets
160 adding manifests
161 adding file changes
162 added 3 changesets with 3 changes to 1 files
163 updating to branch default
164 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
165 checking changesets
166 checking manifests
167 crosschecking files in changesets and manifests
168 checking files
169 1 files, 3 changesets, 3 total revisions
170
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
General Comments 0
You need to be logged in to leave comments. Login now