This branch will be used to create merge case that mirror ones involving the a branch.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
( )
This branch will be used to create merge case that mirror ones involving the a branch.
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | tests/test-copies-chain-merge.t (39 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
1bc2159088d7 | b509d916b088 | Pierre-Yves David | Feb 19 2021, 2:47 PM |
o e-1 b -move-> g | o e-1 b -move-> g | ||||
| | | | ||||
o i-2: c -move-> d, s -move-> t | o i-2: c -move-> d, s -move-> t | ||||
| | | | ||||
o i-1: a -move-> c, p -move-> s | o i-1: a -move-> c, p -move-> s | ||||
| | | | ||||
o i-0 initial commit: a b h | o i-0 initial commit: a b h | ||||
$ hg up -q null | |||||
Having a branch similar to the 'a' one, but moving the 'p' file around. | |||||
$ hg up 'desc("i-2")' | |||||
6 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||||
$ hg mv t u | |||||
$ hg ci -Am 'p-1: t -move-> u' | |||||
created new head | |||||
$ hg mv u v | |||||
$ hg ci -Am 'p-2: u -move-> v' | |||||
$ hg log -G --rev '::.' | |||||
@ p-2: u -move-> v | |||||
| | |||||
o p-1: t -move-> u | |||||
| | |||||
o i-2: c -move-> d, s -move-> t | |||||
| | |||||
o i-1: a -move-> c, p -move-> s | |||||
| | |||||
o i-0 initial commit: a b h | |||||
$ hg up -q null | |||||
Setup all merge | Setup all merge | ||||
=============== | =============== | ||||
This is done beforehand to validate that the upgrade process creates valid copy | This is done beforehand to validate that the upgrade process creates valid copy | ||||
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 - A side: multiple renames, B side: unrelated update" | $ 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 | 6 files updated, 0 files merged, 0 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 | ||||
mK,AE-change-m: chained merges (conflict+change -> simple) - same content on both branch in the initial merge | mK,AE-change-m: chained merges (conflict+change -> simple) - same content on both branch in the initial merge | ||||
mK,AEm: chained merges (conflict -> simple) - same content everywhere | mK,AEm: chained merges (conflict -> simple) - same content everywhere | ||||
mL,BC+revertm: chained merges (salvaged -> simple) - same content (when the file exists) | mL,BC+revertm: chained merges (salvaged -> simple) - same content (when the file exists) | ||||
mL,CB+revertm: chained merges (salvaged -> simple) - same content (when the file exists) | mL,CB+revertm: chained merges (salvaged -> simple) - same content (when the file exists) | ||||
mN,GFm: chained merges (copy-overwrite -> simple) - same content | mN,GFm: chained merges (copy-overwrite -> simple) - same content | ||||
mO,FGm: chained merges (copy-overwrite -> simple) - same content | mO,FGm: chained merges (copy-overwrite -> simple) - same content | ||||
n-1: unrelated changes (based on the "f" series of changes) | n-1: unrelated changes (based on the "f" series of changes) | ||||
o-1: unrelated changes (based on "g" changes) | o-1: unrelated changes (based on "g" changes) | ||||
p-1: t -move-> u | |||||
p-2: u -move-> v | |||||
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. | ||||
removed : b, ; | removed : b, ; | ||||
added p1: g, b; | added p1: g, b; | ||||
##### revision "e-2 g -move-> f" ##### | ##### revision "e-2 g -move-> f" ##### | ||||
1 sidedata entries | 1 sidedata entries | ||||
entry-0014 size 24 | entry-0014 size 24 | ||||
'\x00\x00\x00\x02\x06\x00\x00\x00\x01\x00\x00\x00\x01\x0c\x00\x00\x00\x02\x00\x00\x00\x00fg' | '\x00\x00\x00\x02\x06\x00\x00\x00\x01\x00\x00\x00\x01\x0c\x00\x00\x00\x02\x00\x00\x00\x00fg' | ||||
added p1: f, g; | added p1: f, g; | ||||
removed : g, ; | removed : g, ; | ||||
##### revision "p-1" ##### | |||||
1 sidedata entries | |||||
entry-0014 size 24 | |||||
'\x00\x00\x00\x02\x0c\x00\x00\x00\x01\x00\x00\x00\x00\x06\x00\x00\x00\x02\x00\x00\x00\x00tu' | |||||
removed : t, ; | |||||
added p1: u, t; | |||||
##### revision "p-2" ##### | |||||
1 sidedata entries | |||||
entry-0014 size 24 | |||||
'\x00\x00\x00\x02\x0c\x00\x00\x00\x01\x00\x00\x00\x00\x06\x00\x00\x00\x02\x00\x00\x00\x00uv' | |||||
removed : u, ; | |||||
added p1: v, u; | |||||
##### revision "mBAm-0 simple merge - A side" ##### | ##### revision "mBAm-0 simple merge - A side" ##### | ||||
1 sidedata entries | 1 sidedata entries | ||||
entry-0014 size 4 | entry-0014 size 4 | ||||
'\x00\x00\x00\x00' | '\x00\x00\x00\x00' | ||||
##### revision "mABm-0 simple merge - A side" ##### | ##### revision "mABm-0 simple merge - A side" ##### | ||||
1 sidedata entries | 1 sidedata entries | ||||
entry-0014 size 4 | entry-0014 size 4 | ||||
'\x00\x00\x00\x00' | '\x00\x00\x00\x00' |