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) |
Merge: | Merge: | ||||
- one with change to a file | - one with change to a file | ||||
- one deleting and recreating the file | - one deleting and recreating the file | ||||
Unlike in the 'BD/DB' cases, an actual merge happened here. So we should | Unlike in the 'BD/DB' cases, an actual merge happened here. So we should | ||||
consider history and rename on both branch of the merge. | consider history and rename on both branch of the merge. | ||||
$ case_desc="simple merge" | $ case_desc="actual content merge, copies on one side - D side: delete and re-add (different content), G side: update content" | ||||
$ hg up 'desc("i-2")' | $ hg up 'desc("i-2")' | ||||
3 files updated, 0 files merged, 0 files removed, 0 files unresolved (no-changeset !) | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved (no-changeset !) | ||||
2 files updated, 0 files merged, 0 files removed, 0 files unresolved (changeset !) | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved (changeset !) | ||||
$ echo "some update" >> d | $ echo "some update" >> d | ||||
$ hg commit -m "g-1: update d" | $ hg commit -m "g-1: update d" | ||||
created new head | created new head | ||||
$ hg up 'desc("d-2")' | $ hg up 'desc("d-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("g-1")' --tool :union | $ hg merge 'desc("g-1")' --tool :union | ||||
merging d | merging d | ||||
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 "mDGm-0 $case_desc - one way" | $ hg ci -m "mDGm-0 $case_desc - one way" | ||||
$ hg up 'desc("g-1")' | $ hg up 'desc("g-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("d-2")' --tool :union | $ hg merge 'desc("d-2")' --tool :union | ||||
merging d | merging d | ||||
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 "mGDm-0 $case_desc - the other way" | $ hg ci -m "mGDm-0 $case_desc - the other way" | ||||
created new head | created new head | ||||
$ hg log -G --rev '::(desc("mDGm")+desc("mGDm"))' | $ hg log -G --rev '::(desc("mDGm")+desc("mGDm"))' | ||||
@ 27 mGDm-0 simple merge - the other way | @ 27 mGDm-0 actual content merge, copies on one side - D side: delete and re-add (different content), G side: update content - the other way | ||||
|\ | |\ | ||||
+---o 26 mDGm-0 simple merge - one way | +---o 26 mDGm-0 actual content merge, copies on one side - D side: delete and re-add (different content), G side: update content - one way | ||||
| |/ | | |/ | ||||
| o 25 g-1: update d | | o 25 g-1: update d | ||||
| | | | | | ||||
o | 8 d-2 re-add d | o | 8 d-2 re-add d | ||||
| | | | | | ||||
o | 7 d-1 delete d | o | 7 d-1 delete d | ||||
|/ | |/ | ||||
o 2 i-2: c -move-> d | o 2 i-2: c -move-> 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 | mCB-revert-m-0 | ||||
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 | mCGm-0 | ||||
mCH-delete-before-conflict-m-0 | mCH-delete-before-conflict-m-0 | ||||
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 simple merge - 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 simple merge - one way | mFGm-0 simple merge - one way | ||||
mGCm-0 | mGCm-0 | ||||
mGDm-0 simple merge - 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 simple merge - the other way | mGFm-0 simple merge - the other way | ||||
mHC-delete-before-conflict-m-0 | mHC-delete-before-conflict-m-0 | ||||
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 | ||||
Merge: | Merge: | ||||
- one with change to a file | - one with change to a file | ||||
- one deleting and recreating the file | - one deleting and recreating the file | ||||
Unlike in the 'BD/DB' cases, an actual merge happened here. So we should | Unlike in the 'BD/DB' cases, an actual merge happened here. So we should | ||||
consider history and rename on both branch of the merge. | consider history and rename on both branch of the merge. | ||||
$ hg log -G --rev '::(desc("mDGm")+desc("mGDm"))' | $ hg log -G --rev '::(desc("mDGm")+desc("mGDm"))' | ||||
o 27 mGDm-0 simple merge - the other way | o 27 mGDm-0 actual content merge, copies on one side - D side: delete and re-add (different content), G side: update content - the other way | ||||
|\ | |\ | ||||
+---o 26 mDGm-0 simple merge - one way | +---o 26 mDGm-0 actual content merge, copies on one side - D side: delete and re-add (different content), G side: update content - one way | ||||
| |/ | | |/ | ||||
| o 25 g-1: update d | | o 25 g-1: update d | ||||
| | | | | | ||||
o | 8 d-2 re-add d | o | 8 d-2 re-add d | ||||
| | | | | | ||||
o | 7 d-1 delete d | o | 7 d-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 | ||||
| | | | ||||
o 0 i-0 initial commit: a b h | o 0 i-0 initial commit: a b h | ||||
#else | #else | ||||
BROKEN: `hg log --follow <file>` relies on filelog metadata to work | BROKEN: `hg log --follow <file>` relies on filelog metadata to work | ||||
$ hg log -Gfr 'desc("mDGm-0")' d | $ hg log -Gfr 'desc("mDGm-0")' d | ||||
o 26 mDGm-0 simple merge - one way | o 26 mDGm-0 actual content merge, copies on one side - D side: delete and re-add (different content), G side: update content - one way | ||||
|\ | |\ | ||||
| o 25 g-1: update d | | o 25 g-1: update d | ||||
| | | | | | ||||
o | 8 d-2 re-add d | o | 8 d-2 re-add 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 | ||||
| | | | ||||
o 0 i-0 initial commit: a b h | o 0 i-0 initial commit: a b h | ||||
#else | #else | ||||
BROKEN: `hg log --follow <file>` relies on filelog metadata to work | BROKEN: `hg log --follow <file>` relies on filelog metadata to work | ||||
$ hg log -Gfr 'desc("mDGm-0")' d | $ hg log -Gfr 'desc("mDGm-0")' d | ||||
o 26 mDGm-0 simple merge - one way | o 26 mDGm-0 actual content merge, copies on one side - D side: delete and re-add (different content), G side: update content - one way | ||||
|\ | |\ | ||||
| o 25 g-1: update d | | o 25 g-1: update d | ||||
| | | | | | ||||
o | 8 d-2 re-add d | o | 8 d-2 re-add d | ||||
|/ | |/ | ||||
o 2 i-2: c -move-> d | o 2 i-2: c -move-> d | ||||
| | | | ||||
~ | ~ |