Skip to content
go-libfossil Check-in [ef49615d6c]
Login

Check-in [ef49615d6c]

Overview
Comment:test(checkout): a renamed symlink is not merged, and the rename drops the old name

Covers the rename and dry-run paths of Update's symlink conflict: the link is listed in Unmerged, nothing is written through it, and only a real run deletes the old name, as fossil's update does.

Timelines: family | ancestors | descendants | both | main | trunk | feat/submanifest-reader
Files: files | file ages | folders
SHA3-256: ef49615d6cd4ab584d31a16dfe189198ab38e5223f9d0e2557ee7d48c552c474
User & Date: [email protected] on 2026-10-19 22:48:50.000
Other Links: branch diff | manifest | tags
Context
2026-10-19
23:44
Merge branch 'fix/update-cone-symlink' into feat/submanifest-reader check-in: 44ac676efe user: [email protected] tags: feat/submanifest-reader, main, trunk
22:48
test(checkout): a renamed symlink is not merged, and the rename drops the old name

Covers the rename and dry-run paths of Update's symlink conflict: the link is listed in Unmerged, nothing is written through it, and only a real run deletes the old name, as fossil's update does. check-in: ef49615d6c user: [email protected] tags: feat/submanifest-reader, main, trunk

18:49
fix(checkout): Update decides the cone before renames, and never merges symlinks

A file outside a sparse checkout's cone is never on disk, so it read as missing, hence changed, and followed the target's rename; any upstream rename outside the cone then refused the update. It is now classified before renames are followed and matched by name: a rename outside the cone moves only the record, one into the cone writes the file under its new name, and an unedited file renamed out of it leaves the disk.

A symlink edited locally and changed by the target was merged through the link, writing conflict markers into the file it points at. As fossil's update does, it is now a conflict with nothing written, listed in UpdateResult.Unmerged; a rename still removes the old name. check-in: f373c9a8ae user: [email protected] tags: feat/submanifest-reader, main, trunk

Changes