| | 354 | Hg doesn't seem to deal with it well either: |
| | 355 | {{{ |
| | 356 | rm -rf repo1 repo2 |
| | 357 | |
| | 358 | mkdir repo1 |
| | 359 | cd repo1 |
| | 360 | hg init |
| | 361 | printf "b\nd\n" >file |
| | 362 | hg add file |
| | 363 | hg status |
| | 364 | hg commit -m "bd" |
| | 365 | |
| | 366 | cd .. |
| | 367 | hg clone repo1 repo2 |
| | 368 | |
| | 369 | cd repo1 |
| | 370 | hg rename file file1 |
| | 371 | hg commit -m move |
| | 372 | printf "a\nb\nd\ne\n" >file1 |
| | 373 | hg commit -m "abde" file1 |
| | 374 | printf "a\nb\nc\nd\ne\n" >file1 |
| | 375 | hg commit -m "abcde" file1 |
| | 376 | |
| | 377 | cd ../repo2 |
| | 378 | hg transplant --source ../repo1 tip |
| | 379 | # transplant the most recent change from repo1 |
| | 380 | # BANG!!! |
| | 381 | # |
| | 382 | # searching for changes |
| | 383 | # applying b613e5e3dc1a |
| | 384 | # unable to find 'file1' for patching |
| | 385 | # 1 out of 1 hunk FAILED -- saving rejects to file file1.rej |
| | 386 | # file1: No such file or directory |
| | 387 | # patch failed to apply |
| | 388 | # abort: Fix up the merge and run hg transplant --continue |
| | 389 | }}} |