| 1 |
https://bz.mercurial-scm.org/619 |
| 2 |
|
| 3 |
$ hg init repo |
| 4 |
$ cd repo |
| 5 |
$ echo a > a |
| 6 |
$ hg ci -Ama |
| 7 |
adding a |
| 8 |
|
| 9 |
$ echo b > b |
| 10 |
$ hg branch b |
| 11 |
marked working directory as branch b |
| 12 |
(branches are permanent and global, did you want a bookmark?) |
| 13 |
$ hg ci -Amb |
| 14 |
adding b |
| 15 |
|
| 16 |
$ hg co -C 0 |
| 17 |
0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
| 18 |
|
| 19 |
Fast-forward: |
| 20 |
|
| 21 |
$ hg merge b |
| 22 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 23 |
(branch merge, don't forget to commit) |
| 24 |
$ hg ci -Ammerge |
| 25 |
|
| 26 |
Bogus fast-forward should fail: |
| 27 |
|
| 28 |
$ hg merge b |
| 29 |
abort: merging with a working directory ancestor has no effect |
| 30 |
[255] |
| 31 |
|
| 32 |
Even with strange revset (issue4465) |
| 33 |
|
| 34 |
$ hg merge ::. |
| 35 |
abort: merging with a working directory ancestor has no effect |
| 36 |
[255] |
| 37 |
|