Repository navigation
feat: 写操作排队,删除书签时可移到废纸篓,仓库管理可列出工作树 - #89
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.
仓库正有写操作时,用户发起的写操作排进这个仓库的队列,按先后一次执行一个,不再被拒绝或只响铃;另在仓库管理里补上删除时移到废纸篓、列出工作树与隐藏 SSH 主机别名。对应需求文档 M24「写操作排队」。
改动
RepositoryWriteQueue取代原来的写锁,每个仓库一条、全部窗口共用、只在内存里;performGit在仓库空闲时立即执行,否则排队并按 “已接受” 返回canWrite只看仓库能否接受写入(服务器仓库已连上),各can…规则只看入口的前提;正在写入时菜单、工具栏、右键菜单、拖放、双击与对话框照样可用,点了排队。dialog.blocked只在服务器已断开时出现docs/testing/M24.md验证
mise run swift:lint0 处违规;mise run build通过;mise run test848 个通过(489 + 350 + 9),默认关闭的服务器、github.com 与大仓库测试按开关跳过swift build --product Spooky、./scripts/build-app.sh通过执行中的写操作由
ProcessGate停在中途,覆盖排队的先后、跳过、取消、失败后取消、断线、换仓库与退出、自动获取让路、活动区与 Activity 窗口的等待行、删除询问与移到废纸篓、列出工作树与主机别名按
docs/testing/M24.md手动验收,本机仓库的远端与服务器仓库都经回环的spooky-test,慢获取用测试仓库本地配置里先sleep的uploadpack:未验证
注意