Show More
@@ -1,1343 +1,1349 | |||
|
1 | 1 | #require killdaemons |
|
2 | 2 | |
|
3 | 3 | $ cat >> $HGRCPATH << EOF |
|
4 | 4 | > [extensions] |
|
5 | 5 | > phasereport=$TESTDIR/testlib/ext-phase-report.py |
|
6 | 6 | > EOF |
|
7 | 7 | |
|
8 | 8 | $ hgph() { hg log -G --template "{rev} {phase} {desc} - {node|short}\n" $*; } |
|
9 | 9 | |
|
10 | 10 | $ mkcommit() { |
|
11 | 11 | > echo "$1" > "$1" |
|
12 | 12 | > hg add "$1" |
|
13 | 13 | > message="$1" |
|
14 | 14 | > shift |
|
15 | 15 | > hg ci -m "$message" $* |
|
16 | 16 | > } |
|
17 | 17 | |
|
18 | 18 | $ hg init alpha |
|
19 | 19 | $ cd alpha |
|
20 | 20 | $ mkcommit a-A |
|
21 | 21 | test-debug-phase: new rev 0: x -> 1 |
|
22 | 22 | $ mkcommit a-B |
|
23 | 23 | test-debug-phase: new rev 1: x -> 1 |
|
24 | 24 | $ mkcommit a-C |
|
25 | 25 | test-debug-phase: new rev 2: x -> 1 |
|
26 | 26 | $ mkcommit a-D |
|
27 | 27 | test-debug-phase: new rev 3: x -> 1 |
|
28 | 28 | $ hgph |
|
29 | 29 | @ 3 draft a-D - b555f63b6063 |
|
30 | 30 | | |
|
31 | 31 | o 2 draft a-C - 54acac6f23ab |
|
32 | 32 | | |
|
33 | 33 | o 1 draft a-B - 548a3d25dbf0 |
|
34 | 34 | | |
|
35 | 35 | o 0 draft a-A - 054250a37db4 |
|
36 | 36 | |
|
37 | 37 | |
|
38 | 38 | $ hg init ../beta |
|
39 | 39 | $ hg push -r 1 ../beta |
|
40 | 40 | pushing to ../beta |
|
41 | 41 | searching for changes |
|
42 | 42 | adding changesets |
|
43 | 43 | adding manifests |
|
44 | 44 | adding file changes |
|
45 | 45 | added 2 changesets with 2 changes to 2 files |
|
46 | 46 | test-debug-phase: new rev 0: x -> 0 |
|
47 | 47 | test-debug-phase: new rev 1: x -> 0 |
|
48 | 48 | test-debug-phase: move rev 0: 1 -> 0 |
|
49 | 49 | test-debug-phase: move rev 1: 1 -> 0 |
|
50 | 50 | $ hgph |
|
51 | 51 | @ 3 draft a-D - b555f63b6063 |
|
52 | 52 | | |
|
53 | 53 | o 2 draft a-C - 54acac6f23ab |
|
54 | 54 | | |
|
55 | 55 | o 1 public a-B - 548a3d25dbf0 |
|
56 | 56 | | |
|
57 | 57 | o 0 public a-A - 054250a37db4 |
|
58 | 58 | |
|
59 | 59 | |
|
60 | 60 | $ cd ../beta |
|
61 | 61 | $ hgph |
|
62 | 62 | o 1 public a-B - 548a3d25dbf0 |
|
63 | 63 | | |
|
64 | 64 | o 0 public a-A - 054250a37db4 |
|
65 | 65 | |
|
66 | 66 | $ hg up -q |
|
67 | 67 | $ mkcommit b-A |
|
68 | 68 | test-debug-phase: new rev 2: x -> 1 |
|
69 | 69 | $ hgph |
|
70 | 70 | @ 2 draft b-A - f54f1bb90ff3 |
|
71 | 71 | | |
|
72 | 72 | o 1 public a-B - 548a3d25dbf0 |
|
73 | 73 | | |
|
74 | 74 | o 0 public a-A - 054250a37db4 |
|
75 | 75 | |
|
76 | 76 | $ hg pull ../alpha |
|
77 | 77 | pulling from ../alpha |
|
78 | 78 | searching for changes |
|
79 | 79 | adding changesets |
|
80 | 80 | adding manifests |
|
81 | 81 | adding file changes |
|
82 | 82 | added 2 changesets with 2 changes to 2 files (+1 heads) |
|
83 | 83 | test-debug-phase: new rev 3: x -> 0 |
|
84 | 84 | test-debug-phase: new rev 4: x -> 0 |
|
85 | 85 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
86 | 86 | $ hgph |
|
87 | 87 | o 4 public a-D - b555f63b6063 |
|
88 | 88 | | |
|
89 | 89 | o 3 public a-C - 54acac6f23ab |
|
90 | 90 | | |
|
91 | 91 | | @ 2 draft b-A - f54f1bb90ff3 |
|
92 | 92 | |/ |
|
93 | 93 | o 1 public a-B - 548a3d25dbf0 |
|
94 | 94 | | |
|
95 | 95 | o 0 public a-A - 054250a37db4 |
|
96 | 96 | |
|
97 | 97 | |
|
98 | 98 | pull did not updated ../alpha state. |
|
99 | 99 | push from alpha to beta should update phase even if nothing is transferred |
|
100 | 100 | |
|
101 | 101 | $ cd ../alpha |
|
102 | 102 | $ hgph # not updated by remote pull |
|
103 | 103 | @ 3 draft a-D - b555f63b6063 |
|
104 | 104 | | |
|
105 | 105 | o 2 draft a-C - 54acac6f23ab |
|
106 | 106 | | |
|
107 | 107 | o 1 public a-B - 548a3d25dbf0 |
|
108 | 108 | | |
|
109 | 109 | o 0 public a-A - 054250a37db4 |
|
110 | 110 | |
|
111 | 111 | $ hg push -r 2 ../beta |
|
112 | 112 | pushing to ../beta |
|
113 | 113 | searching for changes |
|
114 | 114 | no changes found |
|
115 | 115 | test-debug-phase: move rev 2: 1 -> 0 |
|
116 | 116 | [1] |
|
117 | 117 | $ hgph |
|
118 | 118 | @ 3 draft a-D - b555f63b6063 |
|
119 | 119 | | |
|
120 | 120 | o 2 public a-C - 54acac6f23ab |
|
121 | 121 | | |
|
122 | 122 | o 1 public a-B - 548a3d25dbf0 |
|
123 | 123 | | |
|
124 | 124 | o 0 public a-A - 054250a37db4 |
|
125 | 125 | |
|
126 | 126 | $ hg push ../beta |
|
127 | 127 | pushing to ../beta |
|
128 | 128 | searching for changes |
|
129 | 129 | no changes found |
|
130 | 130 | test-debug-phase: move rev 3: 1 -> 0 |
|
131 | 131 | [1] |
|
132 | 132 | $ hgph |
|
133 | 133 | @ 3 public a-D - b555f63b6063 |
|
134 | 134 | | |
|
135 | 135 | o 2 public a-C - 54acac6f23ab |
|
136 | 136 | | |
|
137 | 137 | o 1 public a-B - 548a3d25dbf0 |
|
138 | 138 | | |
|
139 | 139 | o 0 public a-A - 054250a37db4 |
|
140 | 140 | |
|
141 | 141 | |
|
142 | 142 | update must update phase of common changeset too |
|
143 | 143 | |
|
144 | 144 | $ hg pull ../beta # getting b-A |
|
145 | 145 | pulling from ../beta |
|
146 | 146 | searching for changes |
|
147 | 147 | adding changesets |
|
148 | 148 | adding manifests |
|
149 | 149 | adding file changes |
|
150 | 150 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
151 | 151 | test-debug-phase: new rev 4: x -> 0 |
|
152 | 152 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
153 | 153 | |
|
154 | 154 | $ cd ../beta |
|
155 | 155 | $ hgph # not updated by remote pull |
|
156 | 156 | o 4 public a-D - b555f63b6063 |
|
157 | 157 | | |
|
158 | 158 | o 3 public a-C - 54acac6f23ab |
|
159 | 159 | | |
|
160 | 160 | | @ 2 draft b-A - f54f1bb90ff3 |
|
161 | 161 | |/ |
|
162 | 162 | o 1 public a-B - 548a3d25dbf0 |
|
163 | 163 | | |
|
164 | 164 | o 0 public a-A - 054250a37db4 |
|
165 | 165 | |
|
166 | 166 | $ hg pull ../alpha |
|
167 | 167 | pulling from ../alpha |
|
168 | 168 | searching for changes |
|
169 | 169 | no changes found |
|
170 | 170 | test-debug-phase: move rev 2: 1 -> 0 |
|
171 | 171 | $ hgph |
|
172 | 172 | o 4 public a-D - b555f63b6063 |
|
173 | 173 | | |
|
174 | 174 | o 3 public a-C - 54acac6f23ab |
|
175 | 175 | | |
|
176 | 176 | | @ 2 public b-A - f54f1bb90ff3 |
|
177 | 177 | |/ |
|
178 | 178 | o 1 public a-B - 548a3d25dbf0 |
|
179 | 179 | | |
|
180 | 180 | o 0 public a-A - 054250a37db4 |
|
181 | 181 | |
|
182 | 182 | |
|
183 | 183 | Publish configuration option |
|
184 | 184 | ---------------------------- |
|
185 | 185 | |
|
186 | 186 | Pull |
|
187 | 187 | ```` |
|
188 | 188 | |
|
189 | 189 | changegroup are added without phase movement |
|
190 | 190 | |
|
191 | 191 | $ hg bundle -a ../base.bundle |
|
192 | 192 | 5 changesets found |
|
193 | 193 | $ cd .. |
|
194 | 194 | $ hg init mu |
|
195 | 195 | $ cd mu |
|
196 | 196 | $ cat > .hg/hgrc << EOF |
|
197 | 197 | > [phases] |
|
198 | 198 | > publish=0 |
|
199 | 199 | > EOF |
|
200 | 200 | $ hg unbundle ../base.bundle |
|
201 | 201 | adding changesets |
|
202 | 202 | adding manifests |
|
203 | 203 | adding file changes |
|
204 | 204 | added 5 changesets with 5 changes to 5 files (+1 heads) |
|
205 | 205 | test-debug-phase: new rev 0: x -> 1 |
|
206 | 206 | test-debug-phase: new rev 1: x -> 1 |
|
207 | 207 | test-debug-phase: new rev 2: x -> 1 |
|
208 | 208 | test-debug-phase: new rev 3: x -> 1 |
|
209 | 209 | test-debug-phase: new rev 4: x -> 1 |
|
210 | 210 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
211 | 211 | $ hgph |
|
212 | 212 | o 4 draft a-D - b555f63b6063 |
|
213 | 213 | | |
|
214 | 214 | o 3 draft a-C - 54acac6f23ab |
|
215 | 215 | | |
|
216 | 216 | | o 2 draft b-A - f54f1bb90ff3 |
|
217 | 217 | |/ |
|
218 | 218 | o 1 draft a-B - 548a3d25dbf0 |
|
219 | 219 | | |
|
220 | 220 | o 0 draft a-A - 054250a37db4 |
|
221 | 221 | |
|
222 | 222 | $ cd .. |
|
223 | 223 | |
|
224 | 224 | Pulling from publish=False to publish=False does not move boundary. |
|
225 | 225 | |
|
226 | 226 | $ hg init nu |
|
227 | 227 | $ cd nu |
|
228 | 228 | $ cat > .hg/hgrc << EOF |
|
229 | 229 | > [phases] |
|
230 | 230 | > publish=0 |
|
231 | 231 | > EOF |
|
232 | 232 | $ hg pull ../mu -r 54acac6f23ab |
|
233 | 233 | pulling from ../mu |
|
234 | 234 | adding changesets |
|
235 | 235 | adding manifests |
|
236 | 236 | adding file changes |
|
237 | 237 | added 3 changesets with 3 changes to 3 files |
|
238 | 238 | test-debug-phase: new rev 0: x -> 1 |
|
239 | 239 | test-debug-phase: new rev 1: x -> 1 |
|
240 | 240 | test-debug-phase: new rev 2: x -> 1 |
|
241 | 241 | (run 'hg update' to get a working copy) |
|
242 | 242 | $ hgph |
|
243 | 243 | o 2 draft a-C - 54acac6f23ab |
|
244 | 244 | | |
|
245 | 245 | o 1 draft a-B - 548a3d25dbf0 |
|
246 | 246 | | |
|
247 | 247 | o 0 draft a-A - 054250a37db4 |
|
248 | 248 | |
|
249 | 249 | |
|
250 | 250 | Even for common |
|
251 | 251 | |
|
252 | 252 | $ hg pull ../mu -r f54f1bb90ff3 |
|
253 | 253 | pulling from ../mu |
|
254 | 254 | searching for changes |
|
255 | 255 | adding changesets |
|
256 | 256 | adding manifests |
|
257 | 257 | adding file changes |
|
258 | 258 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
259 | 259 | test-debug-phase: new rev 3: x -> 1 |
|
260 | 260 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
261 | 261 | $ hgph |
|
262 | 262 | o 3 draft b-A - f54f1bb90ff3 |
|
263 | 263 | | |
|
264 | 264 | | o 2 draft a-C - 54acac6f23ab |
|
265 | 265 | |/ |
|
266 | 266 | o 1 draft a-B - 548a3d25dbf0 |
|
267 | 267 | | |
|
268 | 268 | o 0 draft a-A - 054250a37db4 |
|
269 | 269 | |
|
270 | 270 | |
|
271 | 271 | |
|
272 | 272 | Pulling from Publish=True to Publish=False move boundary in common set. |
|
273 | 273 | we are in nu |
|
274 | 274 | |
|
275 | 275 | $ hg pull ../alpha -r b555f63b6063 |
|
276 | 276 | pulling from ../alpha |
|
277 | 277 | searching for changes |
|
278 | 278 | adding changesets |
|
279 | 279 | adding manifests |
|
280 | 280 | adding file changes |
|
281 | 281 | added 1 changesets with 1 changes to 1 files |
|
282 | 282 | test-debug-phase: move rev 0: 1 -> 0 |
|
283 | 283 | test-debug-phase: move rev 1: 1 -> 0 |
|
284 | 284 | test-debug-phase: move rev 2: 1 -> 0 |
|
285 | 285 | test-debug-phase: new rev 4: x -> 0 |
|
286 | 286 | (run 'hg update' to get a working copy) |
|
287 | 287 | $ hgph # f54f1bb90ff3 stay draft, not ancestor of -r |
|
288 | 288 | o 4 public a-D - b555f63b6063 |
|
289 | 289 | | |
|
290 | 290 | | o 3 draft b-A - f54f1bb90ff3 |
|
291 | 291 | | | |
|
292 | 292 | o | 2 public a-C - 54acac6f23ab |
|
293 | 293 | |/ |
|
294 | 294 | o 1 public a-B - 548a3d25dbf0 |
|
295 | 295 | | |
|
296 | 296 | o 0 public a-A - 054250a37db4 |
|
297 | 297 | |
|
298 | 298 | |
|
299 | 299 | pulling from Publish=False to publish=False with some public |
|
300 | 300 | |
|
301 | 301 | $ hg up -q f54f1bb90ff3 |
|
302 | 302 | $ mkcommit n-A |
|
303 | 303 | test-debug-phase: new rev 5: x -> 1 |
|
304 | 304 | $ mkcommit n-B |
|
305 | 305 | test-debug-phase: new rev 6: x -> 1 |
|
306 | 306 | $ hgph |
|
307 | 307 | @ 6 draft n-B - 145e75495359 |
|
308 | 308 | | |
|
309 | 309 | o 5 draft n-A - d6bcb4f74035 |
|
310 | 310 | | |
|
311 | 311 | | o 4 public a-D - b555f63b6063 |
|
312 | 312 | | | |
|
313 | 313 | o | 3 draft b-A - f54f1bb90ff3 |
|
314 | 314 | | | |
|
315 | 315 | | o 2 public a-C - 54acac6f23ab |
|
316 | 316 | |/ |
|
317 | 317 | o 1 public a-B - 548a3d25dbf0 |
|
318 | 318 | | |
|
319 | 319 | o 0 public a-A - 054250a37db4 |
|
320 | 320 | |
|
321 | 321 | $ cd ../mu |
|
322 | 322 | $ hg pull ../nu |
|
323 | 323 | pulling from ../nu |
|
324 | 324 | searching for changes |
|
325 | 325 | adding changesets |
|
326 | 326 | adding manifests |
|
327 | 327 | adding file changes |
|
328 | 328 | added 2 changesets with 2 changes to 2 files |
|
329 | 329 | test-debug-phase: move rev 0: 1 -> 0 |
|
330 | 330 | test-debug-phase: move rev 1: 1 -> 0 |
|
331 | 331 | test-debug-phase: move rev 3: 1 -> 0 |
|
332 | 332 | test-debug-phase: move rev 4: 1 -> 0 |
|
333 | 333 | test-debug-phase: new rev 5: x -> 1 |
|
334 | 334 | test-debug-phase: new rev 6: x -> 1 |
|
335 | 335 | (run 'hg update' to get a working copy) |
|
336 | 336 | $ hgph |
|
337 | 337 | o 6 draft n-B - 145e75495359 |
|
338 | 338 | | |
|
339 | 339 | o 5 draft n-A - d6bcb4f74035 |
|
340 | 340 | | |
|
341 | 341 | | o 4 public a-D - b555f63b6063 |
|
342 | 342 | | | |
|
343 | 343 | | o 3 public a-C - 54acac6f23ab |
|
344 | 344 | | | |
|
345 | 345 | o | 2 draft b-A - f54f1bb90ff3 |
|
346 | 346 | |/ |
|
347 | 347 | o 1 public a-B - 548a3d25dbf0 |
|
348 | 348 | | |
|
349 | 349 | o 0 public a-A - 054250a37db4 |
|
350 | 350 | |
|
351 | 351 | $ cd .. |
|
352 | 352 | |
|
353 | 353 | pulling into publish=True |
|
354 | 354 | |
|
355 | 355 | $ cd alpha |
|
356 | 356 | $ hgph |
|
357 | 357 | o 4 public b-A - f54f1bb90ff3 |
|
358 | 358 | | |
|
359 | 359 | | @ 3 public a-D - b555f63b6063 |
|
360 | 360 | | | |
|
361 | 361 | | o 2 public a-C - 54acac6f23ab |
|
362 | 362 | |/ |
|
363 | 363 | o 1 public a-B - 548a3d25dbf0 |
|
364 | 364 | | |
|
365 | 365 | o 0 public a-A - 054250a37db4 |
|
366 | 366 | |
|
367 | 367 | $ hg pull ../mu |
|
368 | 368 | pulling from ../mu |
|
369 | 369 | searching for changes |
|
370 | 370 | adding changesets |
|
371 | 371 | adding manifests |
|
372 | 372 | adding file changes |
|
373 | 373 | added 2 changesets with 2 changes to 2 files |
|
374 | 374 | test-debug-phase: new rev 5: x -> 1 |
|
375 | 375 | test-debug-phase: new rev 6: x -> 1 |
|
376 | 376 | (run 'hg update' to get a working copy) |
|
377 | 377 | $ hgph |
|
378 | 378 | o 6 draft n-B - 145e75495359 |
|
379 | 379 | | |
|
380 | 380 | o 5 draft n-A - d6bcb4f74035 |
|
381 | 381 | | |
|
382 | 382 | o 4 public b-A - f54f1bb90ff3 |
|
383 | 383 | | |
|
384 | 384 | | @ 3 public a-D - b555f63b6063 |
|
385 | 385 | | | |
|
386 | 386 | | o 2 public a-C - 54acac6f23ab |
|
387 | 387 | |/ |
|
388 | 388 | o 1 public a-B - 548a3d25dbf0 |
|
389 | 389 | | |
|
390 | 390 | o 0 public a-A - 054250a37db4 |
|
391 | 391 | |
|
392 | 392 | $ cd .. |
|
393 | 393 | |
|
394 | 394 | pulling back into original repo |
|
395 | 395 | |
|
396 | 396 | $ cd nu |
|
397 | 397 | $ hg pull ../alpha |
|
398 | 398 | pulling from ../alpha |
|
399 | 399 | searching for changes |
|
400 | 400 | no changes found |
|
401 | 401 | test-debug-phase: move rev 3: 1 -> 0 |
|
402 | 402 | test-debug-phase: move rev 5: 1 -> 0 |
|
403 | 403 | test-debug-phase: move rev 6: 1 -> 0 |
|
404 | 404 | $ hgph |
|
405 | 405 | @ 6 public n-B - 145e75495359 |
|
406 | 406 | | |
|
407 | 407 | o 5 public n-A - d6bcb4f74035 |
|
408 | 408 | | |
|
409 | 409 | | o 4 public a-D - b555f63b6063 |
|
410 | 410 | | | |
|
411 | 411 | o | 3 public b-A - f54f1bb90ff3 |
|
412 | 412 | | | |
|
413 | 413 | | o 2 public a-C - 54acac6f23ab |
|
414 | 414 | |/ |
|
415 | 415 | o 1 public a-B - 548a3d25dbf0 |
|
416 | 416 | | |
|
417 | 417 | o 0 public a-A - 054250a37db4 |
|
418 | 418 | |
|
419 | 419 | |
|
420 | 420 | Push |
|
421 | 421 | ```` |
|
422 | 422 | |
|
423 | 423 | (inserted) |
|
424 | 424 | |
|
425 | 425 | Test that phase are pushed even when they are nothing to pus |
|
426 | 426 | (this might be tested later bu are very convenient to not alter too much test) |
|
427 | 427 | |
|
428 | 428 | Push back to alpha |
|
429 | 429 | |
|
430 | 430 | $ hg push ../alpha # from nu |
|
431 | 431 | pushing to ../alpha |
|
432 | 432 | searching for changes |
|
433 | 433 | no changes found |
|
434 | 434 | test-debug-phase: move rev 5: 1 -> 0 |
|
435 | 435 | test-debug-phase: move rev 6: 1 -> 0 |
|
436 | 436 | [1] |
|
437 | 437 | $ cd .. |
|
438 | 438 | $ cd alpha |
|
439 | 439 | $ hgph |
|
440 | 440 | o 6 public n-B - 145e75495359 |
|
441 | 441 | | |
|
442 | 442 | o 5 public n-A - d6bcb4f74035 |
|
443 | 443 | | |
|
444 | 444 | o 4 public b-A - f54f1bb90ff3 |
|
445 | 445 | | |
|
446 | 446 | | @ 3 public a-D - b555f63b6063 |
|
447 | 447 | | | |
|
448 | 448 | | o 2 public a-C - 54acac6f23ab |
|
449 | 449 | |/ |
|
450 | 450 | o 1 public a-B - 548a3d25dbf0 |
|
451 | 451 | | |
|
452 | 452 | o 0 public a-A - 054250a37db4 |
|
453 | 453 | |
|
454 | 454 | |
|
455 | 455 | (end insertion) |
|
456 | 456 | |
|
457 | 457 | |
|
458 | 458 | initial setup |
|
459 | 459 | |
|
460 | 460 | $ hg log -G # of alpha |
|
461 | 461 | o changeset: 6:145e75495359 |
|
462 | 462 | | tag: tip |
|
463 | 463 | | user: test |
|
464 | 464 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
465 | 465 | | summary: n-B |
|
466 | 466 | | |
|
467 | 467 | o changeset: 5:d6bcb4f74035 |
|
468 | 468 | | user: test |
|
469 | 469 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
470 | 470 | | summary: n-A |
|
471 | 471 | | |
|
472 | 472 | o changeset: 4:f54f1bb90ff3 |
|
473 | 473 | | parent: 1:548a3d25dbf0 |
|
474 | 474 | | user: test |
|
475 | 475 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
476 | 476 | | summary: b-A |
|
477 | 477 | | |
|
478 | 478 | | @ changeset: 3:b555f63b6063 |
|
479 | 479 | | | user: test |
|
480 | 480 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
481 | 481 | | | summary: a-D |
|
482 | 482 | | | |
|
483 | 483 | | o changeset: 2:54acac6f23ab |
|
484 | 484 | |/ user: test |
|
485 | 485 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
486 | 486 | | summary: a-C |
|
487 | 487 | | |
|
488 | 488 | o changeset: 1:548a3d25dbf0 |
|
489 | 489 | | user: test |
|
490 | 490 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
491 | 491 | | summary: a-B |
|
492 | 492 | | |
|
493 | 493 | o changeset: 0:054250a37db4 |
|
494 | 494 | user: test |
|
495 | 495 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
496 | 496 | summary: a-A |
|
497 | 497 | |
|
498 | 498 | $ mkcommit a-E |
|
499 | 499 | test-debug-phase: new rev 7: x -> 1 |
|
500 | 500 | $ mkcommit a-F |
|
501 | 501 | test-debug-phase: new rev 8: x -> 1 |
|
502 | 502 | $ mkcommit a-G |
|
503 | 503 | test-debug-phase: new rev 9: x -> 1 |
|
504 | 504 | $ hg up d6bcb4f74035 -q |
|
505 | 505 | $ mkcommit a-H |
|
506 | 506 | test-debug-phase: new rev 10: x -> 1 |
|
507 | 507 | created new head |
|
508 | 508 | $ hgph |
|
509 | 509 | @ 10 draft a-H - 967b449fbc94 |
|
510 | 510 | | |
|
511 | 511 | | o 9 draft a-G - 3e27b6f1eee1 |
|
512 | 512 | | | |
|
513 | 513 | | o 8 draft a-F - b740e3e5c05d |
|
514 | 514 | | | |
|
515 | 515 | | o 7 draft a-E - e9f537e46dea |
|
516 | 516 | | | |
|
517 | 517 | +---o 6 public n-B - 145e75495359 |
|
518 | 518 | | | |
|
519 | 519 | o | 5 public n-A - d6bcb4f74035 |
|
520 | 520 | | | |
|
521 | 521 | o | 4 public b-A - f54f1bb90ff3 |
|
522 | 522 | | | |
|
523 | 523 | | o 3 public a-D - b555f63b6063 |
|
524 | 524 | | | |
|
525 | 525 | | o 2 public a-C - 54acac6f23ab |
|
526 | 526 | |/ |
|
527 | 527 | o 1 public a-B - 548a3d25dbf0 |
|
528 | 528 | | |
|
529 | 529 | o 0 public a-A - 054250a37db4 |
|
530 | 530 | |
|
531 | 531 | |
|
532 | 532 | Pulling from bundle does not alter phases of changeset not present in the bundle |
|
533 | 533 | |
|
534 | 534 | $ hg bundle --base 1 -r 6 -r 3 ../partial-bundle.hg |
|
535 | 535 | 5 changesets found |
|
536 | 536 | $ hg pull ../partial-bundle.hg |
|
537 | 537 | pulling from ../partial-bundle.hg |
|
538 | 538 | searching for changes |
|
539 | 539 | no changes found |
|
540 | 540 | $ hgph |
|
541 | 541 | @ 10 draft a-H - 967b449fbc94 |
|
542 | 542 | | |
|
543 | 543 | | o 9 draft a-G - 3e27b6f1eee1 |
|
544 | 544 | | | |
|
545 | 545 | | o 8 draft a-F - b740e3e5c05d |
|
546 | 546 | | | |
|
547 | 547 | | o 7 draft a-E - e9f537e46dea |
|
548 | 548 | | | |
|
549 | 549 | +---o 6 public n-B - 145e75495359 |
|
550 | 550 | | | |
|
551 | 551 | o | 5 public n-A - d6bcb4f74035 |
|
552 | 552 | | | |
|
553 | 553 | o | 4 public b-A - f54f1bb90ff3 |
|
554 | 554 | | | |
|
555 | 555 | | o 3 public a-D - b555f63b6063 |
|
556 | 556 | | | |
|
557 | 557 | | o 2 public a-C - 54acac6f23ab |
|
558 | 558 | |/ |
|
559 | 559 | o 1 public a-B - 548a3d25dbf0 |
|
560 | 560 | | |
|
561 | 561 | o 0 public a-A - 054250a37db4 |
|
562 | 562 | |
|
563 | 563 | |
|
564 | 564 | Pushing to Publish=False (unknown changeset) |
|
565 | 565 | |
|
566 | 566 | $ hg push ../mu -r b740e3e5c05d # a-F |
|
567 | 567 | pushing to ../mu |
|
568 | 568 | searching for changes |
|
569 | 569 | adding changesets |
|
570 | 570 | adding manifests |
|
571 | 571 | adding file changes |
|
572 | 572 | added 2 changesets with 2 changes to 2 files |
|
573 | 573 | test-debug-phase: new rev 7: x -> 1 |
|
574 | 574 | test-debug-phase: new rev 8: x -> 1 |
|
575 | 575 | $ hgph |
|
576 | 576 | @ 10 draft a-H - 967b449fbc94 |
|
577 | 577 | | |
|
578 | 578 | | o 9 draft a-G - 3e27b6f1eee1 |
|
579 | 579 | | | |
|
580 | 580 | | o 8 draft a-F - b740e3e5c05d |
|
581 | 581 | | | |
|
582 | 582 | | o 7 draft a-E - e9f537e46dea |
|
583 | 583 | | | |
|
584 | 584 | +---o 6 public n-B - 145e75495359 |
|
585 | 585 | | | |
|
586 | 586 | o | 5 public n-A - d6bcb4f74035 |
|
587 | 587 | | | |
|
588 | 588 | o | 4 public b-A - f54f1bb90ff3 |
|
589 | 589 | | | |
|
590 | 590 | | o 3 public a-D - b555f63b6063 |
|
591 | 591 | | | |
|
592 | 592 | | o 2 public a-C - 54acac6f23ab |
|
593 | 593 | |/ |
|
594 | 594 | o 1 public a-B - 548a3d25dbf0 |
|
595 | 595 | | |
|
596 | 596 | o 0 public a-A - 054250a37db4 |
|
597 | 597 | |
|
598 | 598 | |
|
599 | 599 | $ cd ../mu |
|
600 | 600 | $ hgph # again f54f1bb90ff3, d6bcb4f74035 and 145e75495359 stay draft, |
|
601 | 601 | > # not ancestor of -r |
|
602 | 602 | o 8 draft a-F - b740e3e5c05d |
|
603 | 603 | | |
|
604 | 604 | o 7 draft a-E - e9f537e46dea |
|
605 | 605 | | |
|
606 | 606 | | o 6 draft n-B - 145e75495359 |
|
607 | 607 | | | |
|
608 | 608 | | o 5 draft n-A - d6bcb4f74035 |
|
609 | 609 | | | |
|
610 | 610 | o | 4 public a-D - b555f63b6063 |
|
611 | 611 | | | |
|
612 | 612 | o | 3 public a-C - 54acac6f23ab |
|
613 | 613 | | | |
|
614 | 614 | | o 2 draft b-A - f54f1bb90ff3 |
|
615 | 615 | |/ |
|
616 | 616 | o 1 public a-B - 548a3d25dbf0 |
|
617 | 617 | | |
|
618 | 618 | o 0 public a-A - 054250a37db4 |
|
619 | 619 | |
|
620 | 620 | |
|
621 | 621 | Pushing to Publish=True (unknown changeset) |
|
622 | 622 | |
|
623 | 623 | $ hg push ../beta -r b740e3e5c05d |
|
624 | 624 | pushing to ../beta |
|
625 | 625 | searching for changes |
|
626 | 626 | adding changesets |
|
627 | 627 | adding manifests |
|
628 | 628 | adding file changes |
|
629 | 629 | added 2 changesets with 2 changes to 2 files |
|
630 | 630 | test-debug-phase: new rev 5: x -> 0 |
|
631 | 631 | test-debug-phase: new rev 6: x -> 0 |
|
632 | 632 | test-debug-phase: move rev 7: 1 -> 0 |
|
633 | 633 | test-debug-phase: move rev 8: 1 -> 0 |
|
634 | 634 | $ hgph # again f54f1bb90ff3, d6bcb4f74035 and 145e75495359 stay draft, |
|
635 | 635 | > # not ancestor of -r |
|
636 | 636 | o 8 public a-F - b740e3e5c05d |
|
637 | 637 | | |
|
638 | 638 | o 7 public a-E - e9f537e46dea |
|
639 | 639 | | |
|
640 | 640 | | o 6 draft n-B - 145e75495359 |
|
641 | 641 | | | |
|
642 | 642 | | o 5 draft n-A - d6bcb4f74035 |
|
643 | 643 | | | |
|
644 | 644 | o | 4 public a-D - b555f63b6063 |
|
645 | 645 | | | |
|
646 | 646 | o | 3 public a-C - 54acac6f23ab |
|
647 | 647 | | | |
|
648 | 648 | | o 2 draft b-A - f54f1bb90ff3 |
|
649 | 649 | |/ |
|
650 | 650 | o 1 public a-B - 548a3d25dbf0 |
|
651 | 651 | | |
|
652 | 652 | o 0 public a-A - 054250a37db4 |
|
653 | 653 | |
|
654 | 654 | |
|
655 | 655 | Pushing to Publish=True (common changeset) |
|
656 | 656 | |
|
657 | 657 | $ cd ../beta |
|
658 | 658 | $ hg push ../alpha |
|
659 | 659 | pushing to ../alpha |
|
660 | 660 | searching for changes |
|
661 | 661 | no changes found |
|
662 | 662 | test-debug-phase: move rev 7: 1 -> 0 |
|
663 | 663 | test-debug-phase: move rev 8: 1 -> 0 |
|
664 | 664 | [1] |
|
665 | 665 | $ hgph |
|
666 | 666 | o 6 public a-F - b740e3e5c05d |
|
667 | 667 | | |
|
668 | 668 | o 5 public a-E - e9f537e46dea |
|
669 | 669 | | |
|
670 | 670 | o 4 public a-D - b555f63b6063 |
|
671 | 671 | | |
|
672 | 672 | o 3 public a-C - 54acac6f23ab |
|
673 | 673 | | |
|
674 | 674 | | @ 2 public b-A - f54f1bb90ff3 |
|
675 | 675 | |/ |
|
676 | 676 | o 1 public a-B - 548a3d25dbf0 |
|
677 | 677 | | |
|
678 | 678 | o 0 public a-A - 054250a37db4 |
|
679 | 679 | |
|
680 | 680 | $ cd ../alpha |
|
681 | 681 | $ hgph |
|
682 | 682 | @ 10 draft a-H - 967b449fbc94 |
|
683 | 683 | | |
|
684 | 684 | | o 9 draft a-G - 3e27b6f1eee1 |
|
685 | 685 | | | |
|
686 | 686 | | o 8 public a-F - b740e3e5c05d |
|
687 | 687 | | | |
|
688 | 688 | | o 7 public a-E - e9f537e46dea |
|
689 | 689 | | | |
|
690 | 690 | +---o 6 public n-B - 145e75495359 |
|
691 | 691 | | | |
|
692 | 692 | o | 5 public n-A - d6bcb4f74035 |
|
693 | 693 | | | |
|
694 | 694 | o | 4 public b-A - f54f1bb90ff3 |
|
695 | 695 | | | |
|
696 | 696 | | o 3 public a-D - b555f63b6063 |
|
697 | 697 | | | |
|
698 | 698 | | o 2 public a-C - 54acac6f23ab |
|
699 | 699 | |/ |
|
700 | 700 | o 1 public a-B - 548a3d25dbf0 |
|
701 | 701 | | |
|
702 | 702 | o 0 public a-A - 054250a37db4 |
|
703 | 703 | |
|
704 | 704 | |
|
705 | 705 | Pushing to Publish=False (common changeset that change phase + unknown one) |
|
706 | 706 | |
|
707 | 707 | $ hg push ../mu -r 967b449fbc94 -f |
|
708 | 708 | pushing to ../mu |
|
709 | 709 | searching for changes |
|
710 | 710 | adding changesets |
|
711 | 711 | adding manifests |
|
712 | 712 | adding file changes |
|
713 | 713 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
714 | 714 | test-debug-phase: move rev 2: 1 -> 0 |
|
715 | 715 | test-debug-phase: move rev 5: 1 -> 0 |
|
716 | 716 | test-debug-phase: new rev 9: x -> 1 |
|
717 | 717 | $ hgph |
|
718 | 718 | @ 10 draft a-H - 967b449fbc94 |
|
719 | 719 | | |
|
720 | 720 | | o 9 draft a-G - 3e27b6f1eee1 |
|
721 | 721 | | | |
|
722 | 722 | | o 8 public a-F - b740e3e5c05d |
|
723 | 723 | | | |
|
724 | 724 | | o 7 public a-E - e9f537e46dea |
|
725 | 725 | | | |
|
726 | 726 | +---o 6 public n-B - 145e75495359 |
|
727 | 727 | | | |
|
728 | 728 | o | 5 public n-A - d6bcb4f74035 |
|
729 | 729 | | | |
|
730 | 730 | o | 4 public b-A - f54f1bb90ff3 |
|
731 | 731 | | | |
|
732 | 732 | | o 3 public a-D - b555f63b6063 |
|
733 | 733 | | | |
|
734 | 734 | | o 2 public a-C - 54acac6f23ab |
|
735 | 735 | |/ |
|
736 | 736 | o 1 public a-B - 548a3d25dbf0 |
|
737 | 737 | | |
|
738 | 738 | o 0 public a-A - 054250a37db4 |
|
739 | 739 | |
|
740 | 740 | $ cd ../mu |
|
741 | 741 | $ hgph # d6bcb4f74035 should have changed phase |
|
742 | 742 | > # 145e75495359 is still draft. not ancestor of -r |
|
743 | 743 | o 9 draft a-H - 967b449fbc94 |
|
744 | 744 | | |
|
745 | 745 | | o 8 public a-F - b740e3e5c05d |
|
746 | 746 | | | |
|
747 | 747 | | o 7 public a-E - e9f537e46dea |
|
748 | 748 | | | |
|
749 | 749 | +---o 6 draft n-B - 145e75495359 |
|
750 | 750 | | | |
|
751 | 751 | o | 5 public n-A - d6bcb4f74035 |
|
752 | 752 | | | |
|
753 | 753 | | o 4 public a-D - b555f63b6063 |
|
754 | 754 | | | |
|
755 | 755 | | o 3 public a-C - 54acac6f23ab |
|
756 | 756 | | | |
|
757 | 757 | o | 2 public b-A - f54f1bb90ff3 |
|
758 | 758 | |/ |
|
759 | 759 | o 1 public a-B - 548a3d25dbf0 |
|
760 | 760 | | |
|
761 | 761 | o 0 public a-A - 054250a37db4 |
|
762 | 762 | |
|
763 | 763 | |
|
764 | 764 | |
|
765 | 765 | Pushing to Publish=True (common changeset from publish=False) |
|
766 | 766 | |
|
767 | 767 | (in mu) |
|
768 | 768 | $ hg push ../alpha |
|
769 | 769 | pushing to ../alpha |
|
770 | 770 | searching for changes |
|
771 | 771 | no changes found |
|
772 | 772 | test-debug-phase: move rev 10: 1 -> 0 |
|
773 | 773 | test-debug-phase: move rev 6: 1 -> 0 |
|
774 | 774 | test-debug-phase: move rev 9: 1 -> 0 |
|
775 | 775 | [1] |
|
776 | 776 | $ hgph |
|
777 | 777 | o 9 public a-H - 967b449fbc94 |
|
778 | 778 | | |
|
779 | 779 | | o 8 public a-F - b740e3e5c05d |
|
780 | 780 | | | |
|
781 | 781 | | o 7 public a-E - e9f537e46dea |
|
782 | 782 | | | |
|
783 | 783 | +---o 6 public n-B - 145e75495359 |
|
784 | 784 | | | |
|
785 | 785 | o | 5 public n-A - d6bcb4f74035 |
|
786 | 786 | | | |
|
787 | 787 | | o 4 public a-D - b555f63b6063 |
|
788 | 788 | | | |
|
789 | 789 | | o 3 public a-C - 54acac6f23ab |
|
790 | 790 | | | |
|
791 | 791 | o | 2 public b-A - f54f1bb90ff3 |
|
792 | 792 | |/ |
|
793 | 793 | o 1 public a-B - 548a3d25dbf0 |
|
794 | 794 | | |
|
795 | 795 | o 0 public a-A - 054250a37db4 |
|
796 | 796 | |
|
797 | 797 | $ hgph -R ../alpha # a-H should have been synced to 0 |
|
798 | 798 | @ 10 public a-H - 967b449fbc94 |
|
799 | 799 | | |
|
800 | 800 | | o 9 draft a-G - 3e27b6f1eee1 |
|
801 | 801 | | | |
|
802 | 802 | | o 8 public a-F - b740e3e5c05d |
|
803 | 803 | | | |
|
804 | 804 | | o 7 public a-E - e9f537e46dea |
|
805 | 805 | | | |
|
806 | 806 | +---o 6 public n-B - 145e75495359 |
|
807 | 807 | | | |
|
808 | 808 | o | 5 public n-A - d6bcb4f74035 |
|
809 | 809 | | | |
|
810 | 810 | o | 4 public b-A - f54f1bb90ff3 |
|
811 | 811 | | | |
|
812 | 812 | | o 3 public a-D - b555f63b6063 |
|
813 | 813 | | | |
|
814 | 814 | | o 2 public a-C - 54acac6f23ab |
|
815 | 815 | |/ |
|
816 | 816 | o 1 public a-B - 548a3d25dbf0 |
|
817 | 817 | | |
|
818 | 818 | o 0 public a-A - 054250a37db4 |
|
819 | 819 | |
|
820 | 820 | |
|
821 | 821 | |
|
822 | 822 | Bare push with next changeset and common changeset needing sync (issue3575) |
|
823 | 823 | |
|
824 | 824 | (reset some stat on remote repo to avoid confusing other tests) |
|
825 | 825 | |
|
826 | 826 | $ hg -R ../alpha --config extensions.strip= strip --no-backup 967b449fbc94 |
|
827 | 827 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
828 | 828 | $ hg phase --force --draft b740e3e5c05d 967b449fbc94 |
|
829 | 829 | test-debug-phase: move rev 8: 0 -> 1 |
|
830 | 830 | test-debug-phase: move rev 9: 0 -> 1 |
|
831 | 831 | $ hg push -fv ../alpha |
|
832 | 832 | pushing to ../alpha |
|
833 | 833 | searching for changes |
|
834 | 834 | 1 changesets found |
|
835 | 835 | uncompressed size of bundle content: |
|
836 | 836 | 178 (changelog) |
|
837 | 837 | 165 (manifests) |
|
838 | 838 | 131 a-H |
|
839 | 839 | adding changesets |
|
840 | 840 | adding manifests |
|
841 | 841 | adding file changes |
|
842 | 842 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
843 | 843 | test-debug-phase: new rev 10: x -> 0 |
|
844 | 844 | test-debug-phase: move rev 8: 1 -> 0 |
|
845 | 845 | test-debug-phase: move rev 9: 1 -> 0 |
|
846 | 846 | $ hgph |
|
847 | 847 | o 9 public a-H - 967b449fbc94 |
|
848 | 848 | | |
|
849 | 849 | | o 8 public a-F - b740e3e5c05d |
|
850 | 850 | | | |
|
851 | 851 | | o 7 public a-E - e9f537e46dea |
|
852 | 852 | | | |
|
853 | 853 | +---o 6 public n-B - 145e75495359 |
|
854 | 854 | | | |
|
855 | 855 | o | 5 public n-A - d6bcb4f74035 |
|
856 | 856 | | | |
|
857 | 857 | | o 4 public a-D - b555f63b6063 |
|
858 | 858 | | | |
|
859 | 859 | | o 3 public a-C - 54acac6f23ab |
|
860 | 860 | | | |
|
861 | 861 | o | 2 public b-A - f54f1bb90ff3 |
|
862 | 862 | |/ |
|
863 | 863 | o 1 public a-B - 548a3d25dbf0 |
|
864 | 864 | | |
|
865 | 865 | o 0 public a-A - 054250a37db4 |
|
866 | 866 | |
|
867 | 867 | |
|
868 | 868 | $ hg -R ../alpha update 967b449fbc94 #for latter test consistency |
|
869 | 869 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
870 | 870 | $ hgph -R ../alpha |
|
871 | 871 | @ 10 public a-H - 967b449fbc94 |
|
872 | 872 | | |
|
873 | 873 | | o 9 draft a-G - 3e27b6f1eee1 |
|
874 | 874 | | | |
|
875 | 875 | | o 8 public a-F - b740e3e5c05d |
|
876 | 876 | | | |
|
877 | 877 | | o 7 public a-E - e9f537e46dea |
|
878 | 878 | | | |
|
879 | 879 | +---o 6 public n-B - 145e75495359 |
|
880 | 880 | | | |
|
881 | 881 | o | 5 public n-A - d6bcb4f74035 |
|
882 | 882 | | | |
|
883 | 883 | o | 4 public b-A - f54f1bb90ff3 |
|
884 | 884 | | | |
|
885 | 885 | | o 3 public a-D - b555f63b6063 |
|
886 | 886 | | | |
|
887 | 887 | | o 2 public a-C - 54acac6f23ab |
|
888 | 888 | |/ |
|
889 | 889 | o 1 public a-B - 548a3d25dbf0 |
|
890 | 890 | | |
|
891 | 891 | o 0 public a-A - 054250a37db4 |
|
892 | 892 | |
|
893 | 893 | |
|
894 | 894 | Discovery locally secret changeset on a remote repository: |
|
895 | 895 | |
|
896 | 896 | - should make it non-secret |
|
897 | 897 | |
|
898 | 898 | $ cd ../alpha |
|
899 | 899 | $ mkcommit A-secret --config phases.new-commit=2 |
|
900 | 900 | test-debug-phase: new rev 11: x -> 2 |
|
901 | 901 | $ hgph |
|
902 | 902 | @ 11 secret A-secret - 435b5d83910c |
|
903 | 903 | | |
|
904 | 904 | o 10 public a-H - 967b449fbc94 |
|
905 | 905 | | |
|
906 | 906 | | o 9 draft a-G - 3e27b6f1eee1 |
|
907 | 907 | | | |
|
908 | 908 | | o 8 public a-F - b740e3e5c05d |
|
909 | 909 | | | |
|
910 | 910 | | o 7 public a-E - e9f537e46dea |
|
911 | 911 | | | |
|
912 | 912 | +---o 6 public n-B - 145e75495359 |
|
913 | 913 | | | |
|
914 | 914 | o | 5 public n-A - d6bcb4f74035 |
|
915 | 915 | | | |
|
916 | 916 | o | 4 public b-A - f54f1bb90ff3 |
|
917 | 917 | | | |
|
918 | 918 | | o 3 public a-D - b555f63b6063 |
|
919 | 919 | | | |
|
920 | 920 | | o 2 public a-C - 54acac6f23ab |
|
921 | 921 | |/ |
|
922 | 922 | o 1 public a-B - 548a3d25dbf0 |
|
923 | 923 | | |
|
924 | 924 | o 0 public a-A - 054250a37db4 |
|
925 | 925 | |
|
926 | 926 | $ hg bundle --base 'parents(.)' -r . ../secret-bundle.hg |
|
927 | 927 | 1 changesets found |
|
928 | 928 | $ hg -R ../mu unbundle ../secret-bundle.hg |
|
929 | 929 | adding changesets |
|
930 | 930 | adding manifests |
|
931 | 931 | adding file changes |
|
932 | 932 | added 1 changesets with 1 changes to 1 files |
|
933 | 933 | test-debug-phase: new rev 10: x -> 1 |
|
934 | 934 | (run 'hg update' to get a working copy) |
|
935 | 935 | $ hgph -R ../mu |
|
936 | 936 | o 10 draft A-secret - 435b5d83910c |
|
937 | 937 | | |
|
938 | 938 | o 9 public a-H - 967b449fbc94 |
|
939 | 939 | | |
|
940 | 940 | | o 8 public a-F - b740e3e5c05d |
|
941 | 941 | | | |
|
942 | 942 | | o 7 public a-E - e9f537e46dea |
|
943 | 943 | | | |
|
944 | 944 | +---o 6 public n-B - 145e75495359 |
|
945 | 945 | | | |
|
946 | 946 | o | 5 public n-A - d6bcb4f74035 |
|
947 | 947 | | | |
|
948 | 948 | | o 4 public a-D - b555f63b6063 |
|
949 | 949 | | | |
|
950 | 950 | | o 3 public a-C - 54acac6f23ab |
|
951 | 951 | | | |
|
952 | 952 | o | 2 public b-A - f54f1bb90ff3 |
|
953 | 953 | |/ |
|
954 | 954 | o 1 public a-B - 548a3d25dbf0 |
|
955 | 955 | | |
|
956 | 956 | o 0 public a-A - 054250a37db4 |
|
957 | 957 | |
|
958 | 958 | $ hg pull ../mu |
|
959 | 959 | pulling from ../mu |
|
960 | 960 | searching for changes |
|
961 | 961 | no changes found |
|
962 | 962 | test-debug-phase: move rev 11: 2 -> 1 |
|
963 | 963 | $ hgph |
|
964 | 964 | @ 11 draft A-secret - 435b5d83910c |
|
965 | 965 | | |
|
966 | 966 | o 10 public a-H - 967b449fbc94 |
|
967 | 967 | | |
|
968 | 968 | | o 9 draft a-G - 3e27b6f1eee1 |
|
969 | 969 | | | |
|
970 | 970 | | o 8 public a-F - b740e3e5c05d |
|
971 | 971 | | | |
|
972 | 972 | | o 7 public a-E - e9f537e46dea |
|
973 | 973 | | | |
|
974 | 974 | +---o 6 public n-B - 145e75495359 |
|
975 | 975 | | | |
|
976 | 976 | o | 5 public n-A - d6bcb4f74035 |
|
977 | 977 | | | |
|
978 | 978 | o | 4 public b-A - f54f1bb90ff3 |
|
979 | 979 | | | |
|
980 | 980 | | o 3 public a-D - b555f63b6063 |
|
981 | 981 | | | |
|
982 | 982 | | o 2 public a-C - 54acac6f23ab |
|
983 | 983 | |/ |
|
984 | 984 | o 1 public a-B - 548a3d25dbf0 |
|
985 | 985 | | |
|
986 | 986 | o 0 public a-A - 054250a37db4 |
|
987 | 987 | |
|
988 | 988 | |
|
989 | 989 | pushing a locally public and draft changesets remotely secret should make them |
|
990 | 990 | appear on the remote side. |
|
991 | 991 | |
|
992 | 992 | $ hg -R ../mu phase --secret --force 967b449fbc94 |
|
993 | 993 | test-debug-phase: move rev 9: 0 -> 2 |
|
994 | 994 | test-debug-phase: move rev 10: 1 -> 2 |
|
995 | 995 | $ hg push -r 435b5d83910c ../mu |
|
996 | 996 | pushing to ../mu |
|
997 | 997 | searching for changes |
|
998 | 998 | abort: push creates new remote head 435b5d83910c! |
|
999 | 999 | (merge or see 'hg help push' for details about pushing new heads) |
|
1000 | 1000 | [255] |
|
1001 | 1001 | $ hg push -fr 435b5d83910c ../mu # because the push will create new visible head |
|
1002 | 1002 | pushing to ../mu |
|
1003 | 1003 | searching for changes |
|
1004 | 1004 | adding changesets |
|
1005 | 1005 | adding manifests |
|
1006 | 1006 | adding file changes |
|
1007 | 1007 | added 0 changesets with 0 changes to 2 files |
|
1008 | 1008 | test-debug-phase: move rev 9: 2 -> 0 |
|
1009 | 1009 | test-debug-phase: move rev 10: 2 -> 1 |
|
1010 | 1010 | $ hgph -R ../mu |
|
1011 | 1011 | o 10 draft A-secret - 435b5d83910c |
|
1012 | 1012 | | |
|
1013 | 1013 | o 9 public a-H - 967b449fbc94 |
|
1014 | 1014 | | |
|
1015 | 1015 | | o 8 public a-F - b740e3e5c05d |
|
1016 | 1016 | | | |
|
1017 | 1017 | | o 7 public a-E - e9f537e46dea |
|
1018 | 1018 | | | |
|
1019 | 1019 | +---o 6 public n-B - 145e75495359 |
|
1020 | 1020 | | | |
|
1021 | 1021 | o | 5 public n-A - d6bcb4f74035 |
|
1022 | 1022 | | | |
|
1023 | 1023 | | o 4 public a-D - b555f63b6063 |
|
1024 | 1024 | | | |
|
1025 | 1025 | | o 3 public a-C - 54acac6f23ab |
|
1026 | 1026 | | | |
|
1027 | 1027 | o | 2 public b-A - f54f1bb90ff3 |
|
1028 | 1028 | |/ |
|
1029 | 1029 | o 1 public a-B - 548a3d25dbf0 |
|
1030 | 1030 | | |
|
1031 | 1031 | o 0 public a-A - 054250a37db4 |
|
1032 | 1032 | |
|
1033 | 1033 | |
|
1034 | 1034 | pull new changeset with common draft locally |
|
1035 | 1035 | |
|
1036 | 1036 | $ hg up -q 967b449fbc94 # create a new root for draft |
|
1037 | 1037 | $ mkcommit 'alpha-more' |
|
1038 | 1038 | test-debug-phase: new rev 12: x -> 1 |
|
1039 | 1039 | created new head |
|
1040 | 1040 | $ hg push -fr . ../mu |
|
1041 | 1041 | pushing to ../mu |
|
1042 | 1042 | searching for changes |
|
1043 | 1043 | adding changesets |
|
1044 | 1044 | adding manifests |
|
1045 | 1045 | adding file changes |
|
1046 | 1046 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
1047 | 1047 | test-debug-phase: new rev 11: x -> 1 |
|
1048 | 1048 | $ cd ../mu |
|
1049 | 1049 | $ hg phase --secret --force 1c5cfd894796 |
|
1050 | 1050 | test-debug-phase: move rev 11: 1 -> 2 |
|
1051 | 1051 | $ hg up -q 435b5d83910c |
|
1052 | 1052 | $ mkcommit 'mu-more' |
|
1053 | 1053 | test-debug-phase: new rev 12: x -> 1 |
|
1054 | 1054 | $ cd ../alpha |
|
1055 | 1055 | $ hg pull ../mu |
|
1056 | 1056 | pulling from ../mu |
|
1057 | 1057 | searching for changes |
|
1058 | 1058 | adding changesets |
|
1059 | 1059 | adding manifests |
|
1060 | 1060 | adding file changes |
|
1061 | 1061 | added 1 changesets with 1 changes to 1 files |
|
1062 | 1062 | test-debug-phase: new rev 13: x -> 1 |
|
1063 | 1063 | (run 'hg update' to get a working copy) |
|
1064 | 1064 | $ hgph |
|
1065 | 1065 | o 13 draft mu-more - 5237fb433fc8 |
|
1066 | 1066 | | |
|
1067 | 1067 | | @ 12 draft alpha-more - 1c5cfd894796 |
|
1068 | 1068 | | | |
|
1069 | 1069 | o | 11 draft A-secret - 435b5d83910c |
|
1070 | 1070 | |/ |
|
1071 | 1071 | o 10 public a-H - 967b449fbc94 |
|
1072 | 1072 | | |
|
1073 | 1073 | | o 9 draft a-G - 3e27b6f1eee1 |
|
1074 | 1074 | | | |
|
1075 | 1075 | | o 8 public a-F - b740e3e5c05d |
|
1076 | 1076 | | | |
|
1077 | 1077 | | o 7 public a-E - e9f537e46dea |
|
1078 | 1078 | | | |
|
1079 | 1079 | +---o 6 public n-B - 145e75495359 |
|
1080 | 1080 | | | |
|
1081 | 1081 | o | 5 public n-A - d6bcb4f74035 |
|
1082 | 1082 | | | |
|
1083 | 1083 | o | 4 public b-A - f54f1bb90ff3 |
|
1084 | 1084 | | | |
|
1085 | 1085 | | o 3 public a-D - b555f63b6063 |
|
1086 | 1086 | | | |
|
1087 | 1087 | | o 2 public a-C - 54acac6f23ab |
|
1088 | 1088 | |/ |
|
1089 | 1089 | o 1 public a-B - 548a3d25dbf0 |
|
1090 | 1090 | | |
|
1091 | 1091 | o 0 public a-A - 054250a37db4 |
|
1092 | 1092 | |
|
1093 | 1093 | |
|
1094 | 1094 | Test that test are properly ignored on remote event when existing locally |
|
1095 | 1095 | |
|
1096 | 1096 | $ cd .. |
|
1097 | 1097 | $ hg clone -qU -r b555f63b6063 -r f54f1bb90ff3 beta gamma |
|
1098 | 1098 | test-debug-phase: new rev 0: x -> 0 |
|
1099 | 1099 | test-debug-phase: new rev 1: x -> 0 |
|
1100 | 1100 | test-debug-phase: new rev 2: x -> 0 |
|
1101 | 1101 | test-debug-phase: new rev 3: x -> 0 |
|
1102 | 1102 | test-debug-phase: new rev 4: x -> 0 |
|
1103 | 1103 | |
|
1104 | 1104 | # pathological case are |
|
1105 | 1105 | # |
|
1106 | 1106 | # * secret remotely |
|
1107 | 1107 | # * known locally |
|
1108 | 1108 | # * repo have uncommon changeset |
|
1109 | 1109 | |
|
1110 | 1110 | $ hg -R beta phase --secret --force f54f1bb90ff3 |
|
1111 | 1111 | test-debug-phase: move rev 2: 0 -> 2 |
|
1112 | 1112 | $ hg -R gamma phase --draft --force f54f1bb90ff3 |
|
1113 | 1113 | test-debug-phase: move rev 2: 0 -> 1 |
|
1114 | 1114 | |
|
1115 | 1115 | $ cd gamma |
|
1116 | 1116 | $ hg pull ../beta |
|
1117 | 1117 | pulling from ../beta |
|
1118 | 1118 | searching for changes |
|
1119 | 1119 | adding changesets |
|
1120 | 1120 | adding manifests |
|
1121 | 1121 | adding file changes |
|
1122 | 1122 | added 2 changesets with 2 changes to 2 files |
|
1123 | 1123 | test-debug-phase: new rev 5: x -> 0 |
|
1124 | 1124 | test-debug-phase: new rev 6: x -> 0 |
|
1125 | 1125 | (run 'hg update' to get a working copy) |
|
1126 | 1126 | $ hg phase f54f1bb90ff3 |
|
1127 | 1127 | 2: draft |
|
1128 | 1128 | |
|
1129 | 1129 | same over the wire |
|
1130 | 1130 | |
|
1131 | 1131 | $ cd ../beta |
|
1132 | 1132 | $ hg serve -p $HGPORT -d --pid-file=../beta.pid -E ../beta-error.log |
|
1133 | 1133 | $ cat ../beta.pid >> $DAEMON_PIDS |
|
1134 | 1134 | $ cd ../gamma |
|
1135 | 1135 | |
|
1136 | 1136 | $ hg pull http://localhost:$HGPORT/ # bundle2+ |
|
1137 | 1137 | pulling from http://localhost:$HGPORT/ |
|
1138 | 1138 | searching for changes |
|
1139 | 1139 | no changes found |
|
1140 | 1140 | $ hg phase f54f1bb90ff3 |
|
1141 | 1141 | 2: draft |
|
1142 | 1142 | |
|
1143 | 1143 | enforce bundle1 |
|
1144 | 1144 | |
|
1145 | 1145 | $ hg pull http://localhost:$HGPORT/ --config devel.legacy.exchange=bundle1 |
|
1146 | 1146 | pulling from http://localhost:$HGPORT/ |
|
1147 | 1147 | searching for changes |
|
1148 | 1148 | no changes found |
|
1149 | 1149 | $ hg phase f54f1bb90ff3 |
|
1150 | 1150 | 2: draft |
|
1151 | 1151 | |
|
1152 | 1152 | check that secret local on both side are not synced to public |
|
1153 | 1153 | |
|
1154 | 1154 | $ hg push -r b555f63b6063 http://localhost:$HGPORT/ |
|
1155 | 1155 | pushing to http://localhost:$HGPORT/ |
|
1156 | 1156 | searching for changes |
|
1157 | 1157 | no changes found |
|
1158 | 1158 | [1] |
|
1159 | 1159 | $ hg phase f54f1bb90ff3 |
|
1160 | 1160 | 2: draft |
|
1161 | 1161 | |
|
1162 | 1162 | put the changeset in the draft state again |
|
1163 | 1163 | (first test after this one expect to be able to copy) |
|
1164 | 1164 | |
|
1165 | 1165 | $ cd .. |
|
1166 | 1166 | |
|
1167 | 1167 | |
|
1168 | 1168 | Test Clone behavior |
|
1169 | 1169 | |
|
1170 | 1170 | A. Clone without secret changeset |
|
1171 | 1171 | |
|
1172 | 1172 | 1. cloning non-publishing repository |
|
1173 | 1173 | (Phase should be preserved) |
|
1174 | 1174 | |
|
1175 | 1175 | # make sure there is no secret so we can use a copy clone |
|
1176 | 1176 | |
|
1177 | 1177 | $ hg -R mu phase --draft 'secret()' |
|
1178 | 1178 | test-debug-phase: move rev 11: 2 -> 1 |
|
1179 | 1179 | |
|
1180 | 1180 | $ hg clone -U mu Tau |
|
1181 | 1181 | $ hgph -R Tau |
|
1182 | 1182 | o 12 draft mu-more - 5237fb433fc8 |
|
1183 | 1183 | | |
|
1184 | 1184 | | o 11 draft alpha-more - 1c5cfd894796 |
|
1185 | 1185 | | | |
|
1186 | 1186 | o | 10 draft A-secret - 435b5d83910c |
|
1187 | 1187 | |/ |
|
1188 | 1188 | o 9 public a-H - 967b449fbc94 |
|
1189 | 1189 | | |
|
1190 | 1190 | | o 8 public a-F - b740e3e5c05d |
|
1191 | 1191 | | | |
|
1192 | 1192 | | o 7 public a-E - e9f537e46dea |
|
1193 | 1193 | | | |
|
1194 | 1194 | +---o 6 public n-B - 145e75495359 |
|
1195 | 1195 | | | |
|
1196 | 1196 | o | 5 public n-A - d6bcb4f74035 |
|
1197 | 1197 | | | |
|
1198 | 1198 | | o 4 public a-D - b555f63b6063 |
|
1199 | 1199 | | | |
|
1200 | 1200 | | o 3 public a-C - 54acac6f23ab |
|
1201 | 1201 | | | |
|
1202 | 1202 | o | 2 public b-A - f54f1bb90ff3 |
|
1203 | 1203 | |/ |
|
1204 | 1204 | o 1 public a-B - 548a3d25dbf0 |
|
1205 | 1205 | | |
|
1206 | 1206 | o 0 public a-A - 054250a37db4 |
|
1207 | 1207 | |
|
1208 | 1208 | |
|
1209 | 1209 | 2. cloning publishing repository |
|
1210 | 1210 | |
|
1211 | 1211 | (everything should be public) |
|
1212 | 1212 | |
|
1213 | 1213 | $ hg clone -U alpha Upsilon |
|
1214 | 1214 | $ hgph -R Upsilon |
|
1215 | 1215 | o 13 public mu-more - 5237fb433fc8 |
|
1216 | 1216 | | |
|
1217 | 1217 | | o 12 public alpha-more - 1c5cfd894796 |
|
1218 | 1218 | | | |
|
1219 | 1219 | o | 11 public A-secret - 435b5d83910c |
|
1220 | 1220 | |/ |
|
1221 | 1221 | o 10 public a-H - 967b449fbc94 |
|
1222 | 1222 | | |
|
1223 | 1223 | | o 9 public a-G - 3e27b6f1eee1 |
|
1224 | 1224 | | | |
|
1225 | 1225 | | o 8 public a-F - b740e3e5c05d |
|
1226 | 1226 | | | |
|
1227 | 1227 | | o 7 public a-E - e9f537e46dea |
|
1228 | 1228 | | | |
|
1229 | 1229 | +---o 6 public n-B - 145e75495359 |
|
1230 | 1230 | | | |
|
1231 | 1231 | o | 5 public n-A - d6bcb4f74035 |
|
1232 | 1232 | | | |
|
1233 | 1233 | o | 4 public b-A - f54f1bb90ff3 |
|
1234 | 1234 | | | |
|
1235 | 1235 | | o 3 public a-D - b555f63b6063 |
|
1236 | 1236 | | | |
|
1237 | 1237 | | o 2 public a-C - 54acac6f23ab |
|
1238 | 1238 | |/ |
|
1239 | 1239 | o 1 public a-B - 548a3d25dbf0 |
|
1240 | 1240 | | |
|
1241 | 1241 | o 0 public a-A - 054250a37db4 |
|
1242 | 1242 | |
|
1243 | 1243 | #if unix-permissions no-root |
|
1244 | 1244 | |
|
1245 | 1245 | Pushing From an unlockable repo |
|
1246 | 1246 | -------------------------------- |
|
1247 | 1247 | (issue3684) |
|
1248 | 1248 | |
|
1249 | 1249 | Unability to lock the source repo should not prevent the push. It will prevent |
|
1250 | 1250 | the retrieval of remote phase during push. For example, pushing to a publishing |
|
1251 | 1251 | server won't turn changeset public. |
|
1252 | 1252 | |
|
1253 | 1253 | 1. Test that push is not prevented |
|
1254 | 1254 | |
|
1255 | 1255 | $ hg init Phi |
|
1256 | 1256 | $ cd Upsilon |
|
1257 | 1257 | $ chmod -R -w .hg |
|
1258 | 1258 | $ hg push ../Phi |
|
1259 | 1259 | pushing to ../Phi |
|
1260 | 1260 | searching for changes |
|
1261 | 1261 | adding changesets |
|
1262 | 1262 | adding manifests |
|
1263 | 1263 | adding file changes |
|
1264 | 1264 | added 14 changesets with 14 changes to 14 files (+3 heads) |
|
1265 | 1265 | test-debug-phase: new rev 0: x -> 0 |
|
1266 | 1266 | test-debug-phase: new rev 1: x -> 0 |
|
1267 | 1267 | test-debug-phase: new rev 2: x -> 0 |
|
1268 | 1268 | test-debug-phase: new rev 3: x -> 0 |
|
1269 | 1269 | test-debug-phase: new rev 4: x -> 0 |
|
1270 | 1270 | test-debug-phase: new rev 5: x -> 0 |
|
1271 | 1271 | test-debug-phase: new rev 6: x -> 0 |
|
1272 | 1272 | test-debug-phase: new rev 7: x -> 0 |
|
1273 | 1273 | test-debug-phase: new rev 8: x -> 0 |
|
1274 | 1274 | test-debug-phase: new rev 9: x -> 0 |
|
1275 | 1275 | test-debug-phase: new rev 10: x -> 0 |
|
1276 | 1276 | test-debug-phase: new rev 11: x -> 0 |
|
1277 | 1277 | test-debug-phase: new rev 12: x -> 0 |
|
1278 | 1278 | test-debug-phase: new rev 13: x -> 0 |
|
1279 | 1279 | $ chmod -R +w .hg |
|
1280 | 1280 | |
|
1281 | 1281 | 2. Test that failed phases movement are reported |
|
1282 | 1282 | |
|
1283 | 1283 | $ hg phase --force --draft 3 |
|
1284 | 1284 | test-debug-phase: move rev 3: 0 -> 1 |
|
1285 | 1285 | test-debug-phase: move rev 7: 0 -> 1 |
|
1286 | 1286 | test-debug-phase: move rev 8: 0 -> 1 |
|
1287 | 1287 | test-debug-phase: move rev 9: 0 -> 1 |
|
1288 | 1288 | $ chmod -R -w .hg |
|
1289 | 1289 | $ hg push ../Phi |
|
1290 | 1290 | pushing to ../Phi |
|
1291 | 1291 | searching for changes |
|
1292 | 1292 | no changes found |
|
1293 | 1293 | cannot lock source repo, skipping local public phase update |
|
1294 | 1294 | [1] |
|
1295 | 1295 | $ chmod -R +w .hg |
|
1296 | 1296 | |
|
1297 | 1297 | $ cd .. |
|
1298 | 1298 | |
|
1299 | 1299 | #endif |
|
1300 | 1300 | |
|
1301 | Test that clone behaves like pull and doesn't | |
|
1302 | publish changesets as plain push does | |
|
1301 | Test that clone behaves like pull and doesn't publish changesets as plain push | |
|
1302 | does. The conditional output accounts for changes in the conditional block | |
|
1303 | above. | |
|
1303 | 1304 | |
|
1304 | 1305 | $ hg -R Upsilon phase -q --force --draft 2 |
|
1305 | 1306 | test-debug-phase: move rev 2: 0 -> 1 |
|
1307 | test-debug-phase: move rev 3: 0 -> 1 (unix-permissions no-root !) | |
|
1308 | test-debug-phase: move rev 7: 0 -> 1 (unix-permissions no-root !) | |
|
1309 | test-debug-phase: move rev 8: 0 -> 1 (unix-permissions no-root !) | |
|
1310 | test-debug-phase: move rev 9: 0 -> 1 (unix-permissions no-root !) | |
|
1311 | ||
|
1306 | 1312 | $ hg clone -q Upsilon Pi -r 7 |
|
1307 | 1313 | test-debug-phase: new rev 0: x -> 0 |
|
1308 | 1314 | test-debug-phase: new rev 1: x -> 0 |
|
1309 | 1315 | test-debug-phase: new rev 2: x -> 0 |
|
1310 | 1316 | test-debug-phase: new rev 3: x -> 0 |
|
1311 | 1317 | test-debug-phase: new rev 4: x -> 0 |
|
1312 | 1318 | $ hgph Upsilon -r 'min(draft())' |
|
1313 | 1319 | o 2 draft a-C - 54acac6f23ab |
|
1314 | 1320 | | |
|
1315 | 1321 | ~ |
|
1316 | 1322 | |
|
1317 | 1323 | $ hg -R Upsilon push Pi -r 7 |
|
1318 | 1324 | pushing to Pi |
|
1319 | 1325 | searching for changes |
|
1320 | 1326 | no changes found |
|
1321 | 1327 | test-debug-phase: move rev 2: 1 -> 0 |
|
1322 | 1328 | test-debug-phase: move rev 3: 1 -> 0 |
|
1323 | 1329 | test-debug-phase: move rev 7: 1 -> 0 |
|
1324 | 1330 | [1] |
|
1325 | 1331 | $ hgph Upsilon -r 'min(draft())' |
|
1326 | 1332 | o 8 draft a-F - b740e3e5c05d |
|
1327 | 1333 | | |
|
1328 | 1334 | ~ |
|
1329 | 1335 | |
|
1330 | 1336 | $ hg -R Upsilon push Pi -r 8 |
|
1331 | 1337 | pushing to Pi |
|
1332 | 1338 | searching for changes |
|
1333 | 1339 | adding changesets |
|
1334 | 1340 | adding manifests |
|
1335 | 1341 | adding file changes |
|
1336 | 1342 | added 1 changesets with 1 changes to 1 files |
|
1337 | 1343 | test-debug-phase: new rev 5: x -> 0 |
|
1338 | 1344 | test-debug-phase: move rev 8: 1 -> 0 |
|
1339 | 1345 | |
|
1340 | 1346 | $ hgph Upsilon -r 'min(draft())' |
|
1341 | 1347 | o 9 draft a-G - 3e27b6f1eee1 |
|
1342 | 1348 | | |
|
1343 | 1349 | ~ |
General Comments 0
You need to be logged in to leave comments.
Login now