Mercurial > hg
annotate tests/test-push-r.t @ 13542:6e3bf361f70c
Merge with stable
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 06 Mar 2011 15:30:39 +0100 |
parents | 28e2e3804f2e |
children | 07708f4171f1 |
rev | line source |
---|---|
12279 | 1 $ hg init test |
2 $ cd test | |
3 | |
4 $ cat >>afile <<EOF | |
5 > 0 | |
6 > EOF | |
7 $ hg add afile | |
8 $ hg commit -m "0.0" | |
9 | |
10 $ cat >>afile <<EOF | |
11 > 1 | |
12 > EOF | |
13 $ hg commit -m "0.1" | |
14 | |
15 $ cat >>afile <<EOF | |
16 > 2 | |
17 > EOF | |
18 $ hg commit -m "0.2" | |
19 | |
20 $ cat >>afile <<EOF | |
21 > 3 | |
22 > EOF | |
23 $ hg commit -m "0.3" | |
24 | |
25 $ hg update -C 0 | |
26 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
27 | |
28 $ cat >>afile <<EOF | |
29 > 1 | |
30 > EOF | |
31 $ hg commit -m "1.1" | |
32 created new head | |
33 | |
34 $ cat >>afile <<EOF | |
35 > 2 | |
36 > EOF | |
37 $ hg commit -m "1.2" | |
38 | |
39 $ cat >fred <<EOF | |
40 > a line | |
41 > EOF | |
42 $ cat >>afile <<EOF | |
43 > 3 | |
44 > EOF | |
45 $ hg add fred | |
46 $ hg commit -m "1.3" | |
47 | |
48 $ hg mv afile adifferentfile | |
49 $ hg commit -m "1.3m" | |
50 | |
51 $ hg update -C 3 | |
52 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
53 | |
54 $ hg mv afile anotherfile | |
55 $ hg commit -m "0.3m" | |
56 | |
57 $ hg debugindex .hg/store/data/afile.i | |
58 rev offset length base linkrev nodeid p1 p2 | |
59 0 0 3 0 0 362fef284ce2 000000000000 000000000000 | |
60 1 3 5 1 1 125144f7e028 362fef284ce2 000000000000 | |
61 2 8 7 2 2 4c982badb186 125144f7e028 000000000000 | |
62 3 15 9 3 3 19b1fc555737 4c982badb186 000000000000 | |
63 | |
64 $ hg debugindex .hg/store/data/adifferentfile.i | |
65 rev offset length base linkrev nodeid p1 p2 | |
66 0 0 75 0 7 2565f3199a74 000000000000 000000000000 | |
67 | |
68 $ hg debugindex .hg/store/data/anotherfile.i | |
69 rev offset length base linkrev nodeid p1 p2 | |
70 0 0 75 0 8 2565f3199a74 000000000000 000000000000 | |
71 | |
72 $ hg debugindex .hg/store/data/fred.i | |
73 rev offset length base linkrev nodeid p1 p2 | |
74 0 0 8 0 6 12ab3bcc5ea4 000000000000 000000000000 | |
75 | |
76 $ hg debugindex .hg/store/00manifest.i | |
77 rev offset length base linkrev nodeid p1 p2 | |
78 0 0 48 0 0 43eadb1d2d06 000000000000 000000000000 | |
79 1 48 48 1 1 8b89697eba2c 43eadb1d2d06 000000000000 | |
80 2 96 48 2 2 626a32663c2f 8b89697eba2c 000000000000 | |
81 3 144 48 3 3 f54c32f13478 626a32663c2f 000000000000 | |
82 4 192 58 3 6 de68e904d169 626a32663c2f 000000000000 | |
83 5 250 68 3 7 09bb521d218d de68e904d169 000000000000 | |
84 6 318 54 6 8 1fde233dfb0f f54c32f13478 000000000000 | |
85 | |
86 $ hg verify | |
87 checking changesets | |
88 checking manifests | |
89 crosschecking files in changesets and manifests | |
90 checking files | |
91 4 files, 9 changesets, 7 total revisions | |
92 | |
93 $ cd .. | |
1781
284fc722c342
add an optional argument to push only the specified revisions (push -r)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
94 |
12279 | 95 $ for i in 0 1 2 3 4 5 6 7 8; do |
96 > echo | |
97 > mkdir test-"$i" | |
98 > hg --cwd test-"$i" init | |
99 > hg -R test push -r "$i" test-"$i" | |
100 > cd test-"$i" | |
101 > hg verify | |
102 > cd .. | |
103 > done | |
104 | |
105 pushing to test-0 | |
106 searching for changes | |
107 adding changesets | |
108 adding manifests | |
109 adding file changes | |
110 added 1 changesets with 1 changes to 1 files | |
111 checking changesets | |
112 checking manifests | |
113 crosschecking files in changesets and manifests | |
114 checking files | |
115 1 files, 1 changesets, 1 total revisions | |
116 | |
117 pushing to test-1 | |
118 searching for changes | |
119 adding changesets | |
120 adding manifests | |
121 adding file changes | |
122 added 2 changesets with 2 changes to 1 files | |
123 checking changesets | |
124 checking manifests | |
125 crosschecking files in changesets and manifests | |
126 checking files | |
127 1 files, 2 changesets, 2 total revisions | |
128 | |
129 pushing to test-2 | |
130 searching for changes | |
131 adding changesets | |
132 adding manifests | |
133 adding file changes | |
134 added 3 changesets with 3 changes to 1 files | |
135 checking changesets | |
136 checking manifests | |
137 crosschecking files in changesets and manifests | |
138 checking files | |
139 1 files, 3 changesets, 3 total revisions | |
140 | |
141 pushing to test-3 | |
142 searching for changes | |
143 adding changesets | |
144 adding manifests | |
145 adding file changes | |
146 added 4 changesets with 4 changes to 1 files | |
147 checking changesets | |
148 checking manifests | |
149 crosschecking files in changesets and manifests | |
150 checking files | |
151 1 files, 4 changesets, 4 total revisions | |
152 | |
153 pushing to test-4 | |
154 searching for changes | |
155 adding changesets | |
156 adding manifests | |
157 adding file changes | |
158 added 2 changesets with 2 changes to 1 files | |
159 checking changesets | |
160 checking manifests | |
161 crosschecking files in changesets and manifests | |
162 checking files | |
163 1 files, 2 changesets, 2 total revisions | |
164 | |
165 pushing to test-5 | |
166 searching for changes | |
167 adding changesets | |
168 adding manifests | |
169 adding file changes | |
170 added 3 changesets with 3 changes to 1 files | |
171 checking changesets | |
172 checking manifests | |
173 crosschecking files in changesets and manifests | |
174 checking files | |
175 1 files, 3 changesets, 3 total revisions | |
176 | |
177 pushing to test-6 | |
178 searching for changes | |
179 adding changesets | |
180 adding manifests | |
181 adding file changes | |
182 added 4 changesets with 5 changes to 2 files | |
183 checking changesets | |
184 checking manifests | |
185 crosschecking files in changesets and manifests | |
186 checking files | |
187 2 files, 4 changesets, 5 total revisions | |
188 | |
189 pushing to test-7 | |
190 searching for changes | |
191 adding changesets | |
192 adding manifests | |
193 adding file changes | |
194 added 5 changesets with 6 changes to 3 files | |
195 checking changesets | |
196 checking manifests | |
197 crosschecking files in changesets and manifests | |
198 checking files | |
199 3 files, 5 changesets, 6 total revisions | |
200 | |
201 pushing to test-8 | |
202 searching for changes | |
203 adding changesets | |
204 adding manifests | |
205 adding file changes | |
206 added 5 changesets with 5 changes to 2 files | |
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 | |
215 $ hg pull ../test-7 | |
216 pulling from ../test-7 | |
217 searching for changes | |
218 adding changesets | |
219 adding manifests | |
220 adding file changes | |
221 added 4 changesets with 2 changes to 3 files (+1 heads) | |
222 (run 'hg heads' to see heads, 'hg merge' to merge) | |
223 | |
224 $ hg verify | |
225 checking changesets | |
226 checking manifests | |
227 crosschecking files in changesets and manifests | |
228 checking files | |
229 4 files, 9 changesets, 7 total revisions | |
230 |