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

Check-in [da5d6546bb]

Overview
Comment:fix(checkout): revert restores the version's executable and symlink bits

Revert wrote a restored file with vfile's bits, which a pending merge may have changed, and left them in vfile. Fossil's revert writes the file with the reverted-to version's permission and records it in vfile.isexe and islink, so reverting a file whose only change is a merged executable bit takes the bit back off. versionPaths now carries each file's permission.

Timelines: family | ancestors | descendants | both | main | trunk | feat/submanifest-reader
Files: files | file ages | folders
SHA3-256: da5d6546bba7a254f1d0cea879086e7bc3dcd6745dc6936e199de2bda255f536
User & Date: [email protected] on 2026-10-21 12:46:59.000
Other Links: branch diff | manifest | tags
Context
2026-10-21
12:47
docs(changelog): stash pop merges three-way; revert restores the version's mode check-in: 8f27b71159 user: [email protected] tags: feat/submanifest-reader, main, trunk
12:46
fix(checkout): revert restores the version's executable and symlink bits

Revert wrote a restored file with vfile's bits, which a pending merge may have changed, and left them in vfile. Fossil's revert writes the file with the reverted-to version's permission and records it in vfile.isexe and islink, so reverting a file whose only change is a merged executable bit takes the bit back off. versionPaths now carries each file's permission. check-in: da5d6546bb user: [email protected] tags: feat/submanifest-reader, main, trunk

12:41
fix(stash): merge popped changes three ways and keep merged exec bits, as fossil does

Apply now does what fossil's stash_apply does when a stashed file changed since the stash: it merges the stashed change (pivot: the stash baseline) onto the file on disk with merge_3way, writing fossil's conflict markers and NAME-baseline/-original/-merge on conflict, an empty file for binary content, and reporting each conflict. Previously the stashed bytes were restored verbatim, losing the current change.

Save reverts a file with a pending merge to the checked-out version's executable and symlink bits, and records them in vfile, as fossil's revert does; the stash keeps the merged bits and the pop restores them. checkout.VersionPaths becomes VersionPerms to supply those bits.

The sparse stash-record-only conformance case now expects fossil's result: a file the merge took unchanged keeps the checked-out content after a stash round trip. check-in: 04e3ea8301 user: [email protected] tags: feat/submanifest-reader, main, trunk

Changes