Repository navigation
设置新增资料库位置迁移入口(重执行方案任务一) - #293
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[growth-exempt: WorkspaceStore.swift +4 行(libraryMigrationInFlight 挂起接线与 flush 补排空),方案阶段4 拆除冗余锁时随重构净减]
背景
重执行《文件模型收敛与资料库迁移入口》方案任务一。方案文档随本 PR 入库(Docs/plans/2026-08-22-file-model-convergence-and-library-relocation.md)。改动迁移自原 #277(已被整线回退,代码当时 CI 绿、回退核验无越界),基于最新 main 重新验证。
实际改动
migrateLibrary(to:)(WorkspaceStore+LibraryRoot.swift):前置校验(嵌套/上级/相等/非空/合法库)、同卷原子移动、跨卷暂存目录逐项搬运+失败回滚、重绑+refreshRuntimeItemURLs+逐课程清单校验、完成后补排空挂起写回并持久化未做内容
共享核心面占用
Sources/WeiBei/Stores/WorkspaceStore.swift:仅本 PR 修改,合并即释放验证
swift build✅、swift run WeiBeiSelfCheck✅回退自查表