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 (18 lines) |
Merging a branch where a rename was deleted with a branch where the same file was renamed | Merging a branch where a rename was deleted with a branch where the same file was renamed | ||||
------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ||||
Create a "conflicting" merge where `d` get removed on one branch before its | Create a "conflicting" merge where `d` get removed on one branch before its | ||||
rename information actually conflict with the other branch. | rename information actually conflict with the other branch. | ||||
(the copy information from the branch that was not deleted should win). | (the copy information from the branch that was not deleted should win). | ||||
$ case_desc="simple merge - C side: d is the results of renames then deleted, H side: d is result of another rename (same content as the other branch)" | |||||
$ hg up 'desc("i-0")' | $ hg up 'desc("i-0")' | ||||
3 files updated, 0 files merged, 0 files removed, 0 files unresolved | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
$ hg mv b d | $ hg mv b d | ||||
$ hg ci -m "h-1: b -(move)-> d" | $ hg ci -m "h-1: b -(move)-> d" | ||||
created new head | created new head | ||||
$ hg up 'desc("c-1")' | $ hg up 'desc("c-1")' | ||||
1 files updated, 0 files merged, 2 files removed, 0 files unresolved | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | ||||
$ hg merge 'desc("h-1")' | $ hg merge 'desc("h-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 | ||||
(branch merge, don't forget to commit) | (branch merge, don't forget to commit) | ||||
$ hg ci -m "mCH-delete-before-conflict-m-0" | $ hg ci -m "mCH-delete-before-conflict-m-0 $case_desc - one way" | ||||
$ hg up 'desc("h-1")' | $ hg up 'desc("h-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 | ||||
$ hg merge 'desc("c-1")' | $ hg merge 'desc("c-1")' | ||||
0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 0 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 "mHC-delete-before-conflict-m-0" | $ hg ci -m "mHC-delete-before-conflict-m-0 $case_desc - the other way" | ||||
created new head | created new head | ||||
$ hg log -G --rev '::(desc("mCH-delete-before-conflict-m")+desc("mHC-delete-before-conflict-m"))' | $ hg log -G --rev '::(desc("mCH-delete-before-conflict-m")+desc("mHC-delete-before-conflict-m"))' | ||||
@ 36 mHC-delete-before-conflict-m-0 | @ 36 mHC-delete-before-conflict-m-0 simple merge - C side: d is the results of renames then deleted, H side: d is result of another rename (same content as the other branch) - the other way | ||||
|\ | |\ | ||||
+---o 35 mCH-delete-before-conflict-m-0 | +---o 35 mCH-delete-before-conflict-m-0 simple merge - C side: d is the results of renames then deleted, H side: d is result of another rename (same content as the other branch) - one way | ||||
| |/ | | |/ | ||||
| o 34 h-1: b -(move)-> d | | o 34 h-1: b -(move)-> d | ||||
| | | | | | ||||
o | 6 c-1 delete d | o | 6 c-1 delete d | ||||
| | | | | | ||||
o | 2 i-2: c -move-> d | o | 2 i-2: c -move-> d | ||||
| | | | | | ||||
o | 1 i-1: a -move-> c | o | 1 i-1: a -move-> c | ||||
mBCm-0 simple merge - C side: delete a file with copies history , B side: unrelated update - one way | mBCm-0 simple merge - C side: delete a file with copies history , B side: unrelated update - one way | ||||
mBCm-1 re-add d | mBCm-1 re-add d | ||||
mBDm-0 simple merge - B side: unrelated update, D side: delete and recreate a file (with different content) - one way | mBDm-0 simple merge - B side: unrelated update, D side: delete and recreate a file (with different content) - one way | ||||
mBFm-0 simple merge - one way | mBFm-0 simple merge - one way | ||||
mCB-revert-m-0 merge explicitely revive deleted file - B side: unrelated change, C side: delete d (restored by merge) - one way | mCB-revert-m-0 merge explicitely revive deleted file - B side: unrelated change, C side: delete d (restored by merge) - one way | ||||
mCBm-0 simple merge - C side: delete a file with copies history , B side: unrelated update - the other way | mCBm-0 simple merge - C side: delete a file with copies history , B side: unrelated update - the other way | ||||
mCBm-1 re-add d | mCBm-1 re-add d | ||||
mCGm-0 merge updated/deleted - revive the file (updated content) - one way | mCGm-0 merge updated/deleted - revive the file (updated content) - one way | ||||
mCH-delete-before-conflict-m-0 | mCH-delete-before-conflict-m-0 simple merge - C side: d is the results of renames then deleted, H side: d is result of another rename (same content as the other branch) - one way | ||||
mDBm-0 simple merge - B side: unrelated update, D side: delete and recreate a file (with different content) - the other way | mDBm-0 simple merge - B side: unrelated update, D side: delete and recreate a file (with different content) - the other way | ||||
mDGm-0 actual content merge, copies on one side - D side: delete and re-add (different content), G side: update content - one way | mDGm-0 actual content merge, copies on one side - D side: delete and re-add (different content), G side: update content - one way | ||||
mEAm-0 merge with copies info on both side - A side: rename d to f, E side: b to f, (same content for f) - the other way | mEAm-0 merge with copies info on both side - A side: rename d to f, E side: b to f, (same content for f) - the other way | ||||
mFBm-0 simple merge - the other way | mFBm-0 simple merge - the other way | ||||
mFGm-0 merge - G side: content change, F side: copy overwrite, no content change - one way | mFGm-0 merge - G side: content change, F side: copy overwrite, no content change - one way | ||||
mGCm-0 merge updated/deleted - revive the file (updated content) - the other way | mGCm-0 merge updated/deleted - revive the file (updated content) - the other way | ||||
mGDm-0 actual content merge, copies on one side - D side: delete and re-add (different content), G side: update content - the other way | mGDm-0 actual content merge, copies on one side - D side: delete and re-add (different content), G side: update content - the other way | ||||
mGFm-0 merge - G side: content change, F side: copy overwrite, no content change - the other way | mGFm-0 merge - G side: content change, F side: copy overwrite, no content change - the other way | ||||
mHC-delete-before-conflict-m-0 | mHC-delete-before-conflict-m-0 simple merge - C side: d is the results of renames then deleted, H side: d is result of another rename (same content as the other branch) - the other way | ||||
Test that sidedata computations during upgrades are correct | Test that sidedata computations during upgrades are correct | ||||
=========================================================== | =========================================================== | ||||
We upgrade a repository that is not using sidedata (the filelog case) and | We upgrade a repository that is not using sidedata (the filelog case) and | ||||
check that the same side data have been generated as if they were computed at | check that the same side data have been generated as if they were computed at | ||||
commit time. | commit time. | ||||
------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ||||
Create a "conflicting" merge where `d` get removed on one branch before its | Create a "conflicting" merge where `d` get removed on one branch before its | ||||
rename information actually conflict with the other branch. | rename information actually conflict with the other branch. | ||||
(the copy information from the branch that was not deleted should win). | (the copy information from the branch that was not deleted should win). | ||||
$ hg log -G --rev '::(desc("mCH-delete-before-conflict-m")+desc("mHC-delete-before-conflict-m"))' | $ hg log -G --rev '::(desc("mCH-delete-before-conflict-m")+desc("mHC-delete-before-conflict-m"))' | ||||
o 36 mHC-delete-before-conflict-m-0 | o 36 mHC-delete-before-conflict-m-0 simple merge - C side: d is the results of renames then deleted, H side: d is result of another rename (same content as the other branch) - the other way | ||||
|\ | |\ | ||||
+---o 35 mCH-delete-before-conflict-m-0 | +---o 35 mCH-delete-before-conflict-m-0 simple merge - C side: d is the results of renames then deleted, H side: d is result of another rename (same content as the other branch) - one way | ||||
| |/ | | |/ | ||||
| o 34 h-1: b -(move)-> d | | o 34 h-1: b -(move)-> d | ||||
| | | | | | ||||
o | 6 c-1 delete d | o | 6 c-1 delete d | ||||
| | | | | | ||||
o | 2 i-2: c -move-> d | o | 2 i-2: c -move-> d | ||||
| | | | | | ||||
o | 1 i-1: a -move-> c | o | 1 i-1: a -move-> c |