Mercurial > evolve
comparison tests/test-evolve.t @ 418:18a0d96ed559 stable
evolve: graft --continue is optional, test
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sun, 05 Aug 2012 11:34:21 +0200 |
parents | 299af91b8b6e |
children | b6163a85ddac 5c031e1c90e2 |
comparison
equal
deleted
inserted
replaced
417:a1fb18ad29a1 | 418:18a0d96ed559 |
---|---|
363 adding file changes | 363 adding file changes |
364 added 1 changesets with 1 changes to 1 files | 364 added 1 changesets with 1 changes to 1 files |
365 (run 'hg update' to get a working copy) | 365 (run 'hg update' to get a working copy) |
366 $ hg up | 366 $ hg up |
367 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 367 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
368 | |
369 $ cd .. | |
370 | |
371 Test graft --obsolete/--old-obsolete | |
372 | |
373 $ hg init test-graft | |
374 $ cd test-graft | |
375 $ mkcommit 0 | |
376 $ mkcommit 1 | |
377 $ mkcommit 2 | |
378 $ mkcommit 3 | |
379 $ hg up -qC 0 | |
380 $ mkcommit 4 | |
381 created new head | |
382 $ glog --hidden | |
383 @ 4:ce341209337f@default(draft) add 4 | |
384 | | |
385 | o 3:0e84df4912da@default(draft) add 3 | |
386 | | | |
387 | o 2:db038628b9e5@default(draft) add 2 | |
388 | | | |
389 | o 1:73d38bb17fd7@default(draft) add 1 | |
390 |/ | |
391 o 0:8685c6d34325@default(draft) add 0 | |
392 | |
393 $ hg graft 3 -O | |
394 grafting revision 3 | |
395 $ hg graft 1 -o 2 | |
396 grafting revision 1 | |
397 $ glog --hidden | |
398 @ 6:acb28cd497b7@default(draft) add 1 | |
399 | | |
400 o 5:0b9e50c35132@default(draft) add 3 | |
401 | | |
402 o 4:ce341209337f@default(draft) add 4 | |
403 | | |
404 | o 3:0e84df4912da@default(secret) add 3 | |
405 | | | |
406 | o 2:db038628b9e5@default(secret) add 2 | |
407 | | | |
408 | o 1:73d38bb17fd7@default(draft) add 1 | |
409 |/ | |
410 o 0:8685c6d34325@default(draft) add 0 | |
411 | |
412 $ hg debugsuccessors | |
413 0e84df4912da 0b9e50c35132 | |
414 db038628b9e5 acb28cd497b7 | |
415 | |
416 Test graft --continue | |
417 | |
418 $ hg up -qC 0 | |
419 $ echo 2 > 1 | |
420 $ hg ci -Am conflict 1 | |
421 created new head | |
422 $ hg up -qC 6 | |
423 $ hg graft -O 7 | |
424 grafting revision 7 | |
425 merging 1 | |
426 warning: conflicts during merge. | |
427 merging 1 incomplete! (edit conflicts, then use 'hg resolve --mark') | |
428 abort: unresolved conflicts, can't continue | |
429 (use hg resolve and hg graft --continue) | |
430 [255] | |
431 $ hg log -r7 --template '{rev}:{node|short} {obsolete}\n' | |
432 7:a5bfd90a2f29 stable | |
433 $ echo 3 > 1 | |
434 $ hg resolve -m 1 | |
435 $ hg graft --continue -O | |
436 grafting revision 7 | |
437 $ glog --hidden | |
438 @ 8:920e58bb443b@default(draft) conflict | |
439 | | |
440 | o 7:a5bfd90a2f29@default(secret) conflict | |
441 | | | |
442 o | 6:acb28cd497b7@default(draft) add 1 | |
443 | | | |
444 o | 5:0b9e50c35132@default(draft) add 3 | |
445 | | | |
446 o | 4:ce341209337f@default(draft) add 4 | |
447 |/ | |
448 | o 3:0e84df4912da@default(secret) add 3 | |
449 | | | |
450 | o 2:db038628b9e5@default(secret) add 2 | |
451 | | | |
452 | o 1:73d38bb17fd7@default(draft) add 1 | |
453 |/ | |
454 o 0:8685c6d34325@default(draft) add 0 | |
455 | |
456 $ hg debugsuccessors | |
457 0e84df4912da 0b9e50c35132 | |
458 a5bfd90a2f29 920e58bb443b | |
459 db038628b9e5 acb28cd497b7 | |
460 | |
461 $ cd .. | |
462 |