Mercurial > evolve
comparison tests/test-sharing.t @ 1641:27445da063b7
tests: adapt output to the new graphlog style
Core have change the way graphmod handle missing parent. We adapt our output.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Thu, 14 Apr 2016 13:02:23 -0700 |
parents | c216b175d535 |
children | 898dfca94433 5383671ef612 |
comparison
equal
deleted
inserted
replaced
1640:bbf897714e70 | 1641:27445da063b7 |
---|---|
219 | | 219 | |
220 | x 2:f91e97234c2b draft fix bug 15 (v1) | 220 | x 2:f91e97234c2b draft fix bug 15 (v1) |
221 |/ | 221 |/ |
222 @ 1:de6151c48e1c public fix bug 37 | 222 @ 1:de6151c48e1c public fix bug 37 |
223 | | 223 | |
224 ~ | |
224 | 225 |
225 Bob commits a draft changeset, pushes to review repo. | 226 Bob commits a draft changeset, pushes to review repo. |
226 $ cd ../bob | 227 $ cd ../bob |
227 $ echo 'stuff' > file1 | 228 $ echo 'stuff' > file1 |
228 $ hg bookmark featureX | 229 $ hg bookmark featureX |
294 |/ | 295 |/ |
295 | x 2:f91e97234c2b draft fix bug 15 (v1) | 296 | x 2:f91e97234c2b draft fix bug 15 (v1) |
296 |/ | 297 |/ |
297 @ 1:de6151c48e1c public fix bug 37 | 298 @ 1:de6151c48e1c public fix bug 37 |
298 | | 299 | |
300 ~ | |
299 $ hg --hidden -R ../public shortlog -G -r 1:: | 301 $ hg --hidden -R ../public shortlog -G -r 1:: |
300 o 2:540ba8f317e6 public implement feature X (v3) | 302 o 2:540ba8f317e6 public implement feature X (v3) |
301 | | 303 | |
302 o 1:de6151c48e1c public fix bug 37 | 304 o 1:de6151c48e1c public fix bug 37 |
303 | | 305 | |
306 ~ | |
304 | 307 |
305 How do things look in the review repo? | 308 How do things look in the review repo? |
306 $ cd ../review | 309 $ cd ../review |
307 $ hg --hidden shortlog -G -r 1:: | 310 $ hg --hidden shortlog -G -r 1:: |
308 o 6:540ba8f317e6 public implement feature X (v3) | 311 o 6:540ba8f317e6 public implement feature X (v3) |
315 |/ | 318 |/ |
316 | x 2:f91e97234c2b draft fix bug 15 (v1) | 319 | x 2:f91e97234c2b draft fix bug 15 (v1) |
317 |/ | 320 |/ |
318 @ 1:de6151c48e1c public fix bug 37 | 321 @ 1:de6151c48e1c public fix bug 37 |
319 | | 322 | |
323 ~ | |
320 | 324 |
321 Meantime, Alice is back from lunch. While she was away, Bob approved | 325 Meantime, Alice is back from lunch. While she was away, Bob approved |
322 her change, so now she can publish it. | 326 her change, so now she can publish it. |
323 $ cd ../alice | 327 $ cd ../alice |
324 $ hg --hidden shortlog -G -r 1:: | 328 $ hg --hidden shortlog -G -r 1:: |
328 | | | 332 | | |
329 | x 2:f91e97234c2b draft fix bug 15 (v1) | 333 | x 2:f91e97234c2b draft fix bug 15 (v1) |
330 |/ | 334 |/ |
331 o 1:de6151c48e1c public fix bug 37 | 335 o 1:de6151c48e1c public fix bug 37 |
332 | | 336 | |
337 ~ | |
333 $ hg outgoing -q ../public | 338 $ hg outgoing -q ../public |
334 4:cbdfbd5a5db2 | 339 4:cbdfbd5a5db2 |
335 $ hg push ../public | 340 $ hg push ../public |
336 pushing to ../public | 341 pushing to ../public |
337 searching for changes | 342 searching for changes |
349 4 new obsolescence markers | 354 4 new obsolescence markers |
350 (run 'hg heads' to see heads, 'hg merge' to merge) | 355 (run 'hg heads' to see heads, 'hg merge' to merge) |
351 $ hg log -G -q -r 'head()' | 356 $ hg log -G -q -r 'head()' |
352 o 5:540ba8f317e6 | 357 o 5:540ba8f317e6 |
353 | | 358 | |
354 | @ 4:cbdfbd5a5db2 | 359 ~ |
355 |/ | 360 @ 4:cbdfbd5a5db2 |
361 | | |
362 ~ | |
356 $ hg --hidden shortlog -G -r 1:: | 363 $ hg --hidden shortlog -G -r 1:: |
357 o 5:540ba8f317e6 public implement feature X (v3) | 364 o 5:540ba8f317e6 public implement feature X (v3) |
358 | | 365 | |
359 | @ 4:cbdfbd5a5db2 draft fix bug 15 (v2) | 366 | @ 4:cbdfbd5a5db2 draft fix bug 15 (v2) |
360 |/ | 367 |/ |
362 | | | 369 | | |
363 | x 2:f91e97234c2b draft fix bug 15 (v1) | 370 | x 2:f91e97234c2b draft fix bug 15 (v1) |
364 |/ | 371 |/ |
365 o 1:de6151c48e1c public fix bug 37 | 372 o 1:de6151c48e1c public fix bug 37 |
366 | | 373 | |
374 ~ | |
367 | 375 |
368 Alice rebases her draft changeset on top of Bob's public changeset and | 376 Alice rebases her draft changeset on top of Bob's public changeset and |
369 publishes the result. | 377 publishes the result. |
370 $ hg rebase -d 5 | 378 $ hg rebase -d 5 |
371 rebasing 4:cbdfbd5a5db2 "fix bug 15 (v2)" (bug15) | 379 rebasing 4:cbdfbd5a5db2 "fix bug 15 (v2)" (bug15) |
401 |/ | 409 |/ |
402 | x 2:f91e97234c2b draft fix bug 15 (v1) | 410 | x 2:f91e97234c2b draft fix bug 15 (v1) |
403 |/ | 411 |/ |
404 @ 1:de6151c48e1c public fix bug 37 | 412 @ 1:de6151c48e1c public fix bug 37 |
405 | | 413 | |
414 ~ | |
406 $ hg --hidden -R ../public shortlog -G -r 1:: | 415 $ hg --hidden -R ../public shortlog -G -r 1:: |
407 o 3:a06ec1bf97bd public fix bug 15 (v2) | 416 o 3:a06ec1bf97bd public fix bug 15 (v2) |
408 | | 417 | |
409 o 2:540ba8f317e6 public implement feature X (v3) | 418 o 2:540ba8f317e6 public implement feature X (v3) |
410 | | 419 | |
411 o 1:de6151c48e1c public fix bug 37 | 420 o 1:de6151c48e1c public fix bug 37 |
412 | | 421 | |
422 ~ | |
413 $ cd .. | 423 $ cd .. |
414 | 424 |
415 Setup for "cowboy mode" shared mutable history (to illustrate divergent | 425 Setup for "cowboy mode" shared mutable history (to illustrate divergent |
416 and bumped changesets). | 426 and bumped changesets). |
417 $ rm -rf review alice bob | 427 $ rm -rf review alice bob |
462 | | | 472 | | |
463 | x 4:2fe6c4bd32d0 draft fix bug 24 (v1) | 473 | x 4:2fe6c4bd32d0 draft fix bug 24 (v1) |
464 |/ | 474 |/ |
465 o 3:a06ec1bf97bd public fix bug 15 (v2) | 475 o 3:a06ec1bf97bd public fix bug 15 (v2) |
466 | | 476 | |
477 ~ | |
467 | 478 |
468 Bob discovers the divergence. | 479 Bob discovers the divergence. |
469 $ hg pull ../alice | 480 $ hg pull ../alice |
470 pulling from ../alice | 481 pulling from ../alice |
471 searching for changes | 482 searching for changes |
487 | | | 498 | | |
488 | x 4:2fe6c4bd32d0 draft fix bug 24 (v1) | 499 | x 4:2fe6c4bd32d0 draft fix bug 24 (v1) |
489 |/ | 500 |/ |
490 o 3:a06ec1bf97bd public fix bug 15 (v2) | 501 o 3:a06ec1bf97bd public fix bug 15 (v2) |
491 | | 502 | |
503 ~ | |
492 $ hg --hidden shortlog -r 'successors(2fe6)' | 504 $ hg --hidden shortlog -r 'successors(2fe6)' |
493 6:a360947f6faf draft fix bug 24 (v2 by bob) | 505 6:a360947f6faf draft fix bug 24 (v2 by bob) |
494 7:e3f99ce9d9cd draft fix bug 24 (v2 by alice) | 506 7:e3f99ce9d9cd draft fix bug 24 (v2 by alice) |
495 | 507 |
496 Use evolve to fix the divergence. | 508 Use evolve to fix the divergence. |
516 | | | 528 | | |
517 | x 4:2fe6c4bd32d0 draft fix bug 24 (v1) | 529 | x 4:2fe6c4bd32d0 draft fix bug 24 (v1) |
518 |/ | 530 |/ |
519 o 3:a06ec1bf97bd public fix bug 15 (v2) | 531 o 3:a06ec1bf97bd public fix bug 15 (v2) |
520 | | 532 | |
533 ~ | |
521 $ hg --hidden shortlog -r 'precursors(9)' | 534 $ hg --hidden shortlog -r 'precursors(9)' |
522 6:a360947f6faf draft fix bug 24 (v2 by bob) | 535 6:a360947f6faf draft fix bug 24 (v2 by bob) |
523 7:e3f99ce9d9cd draft fix bug 24 (v2 by alice) | 536 7:e3f99ce9d9cd draft fix bug 24 (v2 by alice) |
524 $ cat file1 | 537 $ cat file1 |
525 Do stuff. | 538 Do stuff. |