Mercurial > evolve
comparison tests/test-evolve-continue.t @ 4425:43c24cf6d24b stable
evolve: add tests which shows evolve can get confused about copies (issue5930)
This test demonstrate that an interrupted evolve can get confused about
copies. Next patch will fix this.
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Thu, 07 Mar 2019 01:02:05 +0530 |
parents | 4eb3877540f1 |
children | 7d97e08d13a0 |
comparison
equal
deleted
inserted
replaced
4424:d52f14bdb468 | 4425:43c24cf6d24b |
---|---|
354 $ hg resolve -m | 354 $ hg resolve -m |
355 (no more unresolved files) | 355 (no more unresolved files) |
356 continue: hg evolve --continue | 356 continue: hg evolve --continue |
357 $ hg evolve --continue | 357 $ hg evolve --continue |
358 evolving 22:d2c94a8f44bd "added g" | 358 evolving 22:d2c94a8f44bd "added g" |
359 | |
360 Testing that interrupted evolve don't get confused about copies (issue5930): | |
361 ---------------------------------------------------------------------------- | |
362 | |
363 $ cd .. | |
364 $ hg init issue5930 | |
365 $ cd issue5930 | |
366 $ echo a > a | |
367 $ hg ci -Am "added a" | |
368 adding a | |
369 $ hg cp a b | |
370 $ hg ci -m "rename a to b" | |
371 | |
372 $ hg up 0 -q | |
373 $ echo c > c | |
374 $ hg ci -Am "added c" | |
375 adding c | |
376 created new head | |
377 | |
378 $ echo d > c | |
379 $ echo d > d | |
380 $ hg ci -Am "added d, modified c" | |
381 adding d | |
382 $ hg up .^ | |
383 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
384 | |
385 $ hg log -G -T "{rev} {desc}\n" | |
386 o 3 added d, modified c | |
387 | | |
388 @ 2 added c | |
389 | | |
390 | o 1 rename a to b | |
391 |/ | |
392 o 0 added a | |
393 | |
394 $ hg rebase -r . -d 1 | |
395 rebasing 2:29edef26570b "added c" | |
396 1 new orphan changesets | |
397 $ echo conflict > c | |
398 $ hg amend | |
399 | |
400 $ hg log -G -T "{rev} {desc}\n" | |
401 @ 5 added c | |
402 | | |
403 | * 3 added d, modified c | |
404 | | | |
405 | x 2 added c | |
406 | | | |
407 o | 1 rename a to b | |
408 |/ | |
409 o 0 added a | |
410 | |
411 | |
412 $ hg evolve | |
413 move:[3] added d, modified c | |
414 atop:[5] added c | |
415 merging c | |
416 warning: conflicts while merging c! (edit, then use 'hg resolve --mark') | |
417 fix conflicts and see `hg help evolve.interrupted` | |
418 [1] | |
419 | |
420 Status mentions file 'b' (copied from 'a') here, even though it wasn't | |
421 affected by the evolved changeset (nor was 'a') | |
422 | |
423 $ hg st -C | |
424 M b | |
425 a | |
426 M c | |
427 A d | |
428 ? c.orig |