This branch will be used to create merge case that mirror ones involving the e 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 e branch.
| No Linters Available |
| No Unit Test Coverage |
| Path | Packages | |||
|---|---|---|---|---|
| M | tests/test-copies-chain-merge.t (36 lines) |
| Commit | Parents | Author | Summary | Date |
|---|---|---|---|---|
| 9bf0788d60b0 | 1bc2159088d7 | Pierre-Yves David | Feb 19 2021, 2:47 PM |
| 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 | $ hg up -q null | ||||
| Having another branch renaming a different file to the same filename as another | |||||
| $ hg up 'desc("i-2")' | |||||
| 6 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||||
| $ hg mv r w | |||||
| $ hg ci -m 'q-1 r -move-> w' | |||||
| created new head | |||||
| $ hg mv w v | |||||
| $ hg ci -m 'q-2 w -move-> v' | |||||
| $ hg log -G --rev '::.' | |||||
| @ q-2 w -move-> v | |||||
| | | |||||
| o q-1 r -move-> w | |||||
| | | |||||
| 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 | ||||
| --------------------------------------------------------------- | --------------------------------------------------------------- | ||||
| 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-1: t -move-> u | ||||
| p-2: u -move-> v | p-2: u -move-> v | ||||
| q-1 r -move-> w | |||||
| q-2 w -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 : t, ; | removed : t, ; | ||||
| added p1: u, t; | added p1: u, t; | ||||
| ##### revision "p-2" ##### | ##### revision "p-2" ##### | ||||
| 1 sidedata entries | 1 sidedata entries | ||||
| entry-0014 size 24 | 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' | '\x00\x00\x00\x02\x0c\x00\x00\x00\x01\x00\x00\x00\x00\x06\x00\x00\x00\x02\x00\x00\x00\x00uv' | ||||
| removed : u, ; | removed : u, ; | ||||
| added p1: v, u; | added p1: v, u; | ||||
| ##### revision "q-1 r -move-> w" ##### | |||||
| 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\x00rw' | |||||
| removed : r, ; | |||||
| added p1: w, r; | |||||
| ##### revision "q-2 w -move-> v" ##### | |||||
| 1 sidedata entries | |||||
| 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\x00vw' | |||||
| added p1: v, w; | |||||
| removed : w, ; | |||||
| ##### 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' | ||||