This will make its role clearer.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
( )
This will make its role clearer.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | tests/test-copies-chain-merge.t (14 lines) |
information. | information. | ||||
merging with unrelated change does not interfere with the renames | merging with unrelated change does not interfere with the renames | ||||
--------------------------------------------------------------- | --------------------------------------------------------------- | ||||
- rename on one side | - rename on one side | ||||
- unrelated change on the other side | - unrelated change on the other side | ||||
$ case_desc="simple merge" | $ case_desc="simple merge - A side: multiple renames, B side: unrelated update" | ||||
$ hg up 'desc("b-1")' | $ hg up 'desc("b-1")' | ||||
1 files updated, 0 files merged, 1 files removed, 0 files unresolved | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | ||||
$ hg merge 'desc("a-2")' | $ hg merge 'desc("a-2")' | ||||
1 files updated, 0 files merged, 1 files removed, 0 files unresolved | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | ||||
(branch merge, don't forget to commit) | (branch merge, don't forget to commit) | ||||
$ hg ci -m "mBAm-0 $case_desc - one way" | $ hg ci -m "mBAm-0 $case_desc - one way" | ||||
$ hg up 'desc("a-2")' | $ hg up 'desc("a-2")' | ||||
1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
$ hg merge 'desc("b-1")' | $ hg merge 'desc("b-1")' | ||||
1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
(branch merge, don't forget to commit) | (branch merge, don't forget to commit) | ||||
$ hg ci -m "mABm-0 $case_desc - the other way" | $ hg ci -m "mABm-0 $case_desc - the other way" | ||||
created new head | created new head | ||||
$ hg log -G --rev '::(desc("mABm")+desc("mBAm"))' | $ hg log -G --rev '::(desc("mABm")+desc("mBAm"))' | ||||
@ 12 mABm-0 simple merge - the other way | @ 12 mABm-0 simple merge - A side: multiple renames, B side: unrelated update - the other way | ||||
|\ | |\ | ||||
+---o 11 mBAm-0 simple merge - one way | +---o 11 mBAm-0 simple merge - A side: multiple renames, B side: unrelated update - one way | ||||
| |/ | | |/ | ||||
| o 5 b-1: b update | | o 5 b-1: b update | ||||
| | | | | | ||||
o | 4 a-2: e -move-> f | o | 4 a-2: e -move-> f | ||||
| | | | | | ||||
o | 3 a-1: d -move-> e | o | 3 a-1: d -move-> e | ||||
|/ | |/ | ||||
o 2 i-2: c -move-> d | o 2 i-2: c -move-> d | ||||
e-2 g -move-> f | e-2 g -move-> f | ||||
f-1: rename h -> i | f-1: rename h -> i | ||||
f-2: rename i -> d | f-2: rename i -> d | ||||
g-1: update d | g-1: update d | ||||
h-1: b -(move)-> d | h-1: b -(move)-> d | ||||
i-0 initial commit: a b h | i-0 initial commit: a b h | ||||
i-1: a -move-> c | i-1: a -move-> c | ||||
i-2: c -move-> d | i-2: c -move-> d | ||||
mABm-0 simple merge - the other way | mABm-0 simple merge - A side: multiple renames, B side: unrelated update - the other way | ||||
mAEm-0 simple merge - one way | mAEm-0 simple merge - one way | ||||
mBAm-0 simple merge - one way | mBAm-0 simple merge - A side: multiple renames, B side: unrelated update - one way | ||||
mBC-revert-m-0 | mBC-revert-m-0 | ||||
mBCm-0 simple merge - one way | mBCm-0 simple merge - one way | ||||
mBCm-1 re-add d | mBCm-1 re-add d | ||||
mBDm-0 simple merge - one way | mBDm-0 simple merge - one way | ||||
mBFm-0 simple merge - one way | mBFm-0 simple merge - one way | ||||
mCB-revert-m-0 | mCB-revert-m-0 | ||||
mCBm-0 simple merge - the other way | mCBm-0 simple merge - the other way | ||||
mCBm-1 re-add d | mCBm-1 re-add d | ||||
merging with unrelated change does not interfere with the renames | merging with unrelated change does not interfere with the renames | ||||
--------------------------------------------------------------- | --------------------------------------------------------------- | ||||
- rename on one side | - rename on one side | ||||
- unrelated change on the other side | - unrelated change on the other side | ||||
$ hg log -G --rev '::(desc("mABm")+desc("mBAm"))' | $ hg log -G --rev '::(desc("mABm")+desc("mBAm"))' | ||||
o 12 mABm-0 simple merge - the other way | o 12 mABm-0 simple merge - A side: multiple renames, B side: unrelated update - the other way | ||||
|\ | |\ | ||||
+---o 11 mBAm-0 simple merge - one way | +---o 11 mBAm-0 simple merge - A side: multiple renames, B side: unrelated update - one way | ||||
| |/ | | |/ | ||||
| o 5 b-1: b update | | o 5 b-1: b update | ||||
| | | | | | ||||
o | 4 a-2: e -move-> f | o | 4 a-2: e -move-> f | ||||
| | | | | | ||||
o | 3 a-1: d -move-> e | o | 3 a-1: d -move-> e | ||||
|/ | |/ | ||||
o 2 i-2: c -move-> d | o 2 i-2: c -move-> d |