gpt4 book ai didi

Mercurial 添加新文件没有找到匹配错误

转载 作者:行者123 更新时间:2023-12-04 21:26:10 26 4
gpt4 key购买 nike

我在更新 Mercurial 时遇到了一个奇怪的问题。每次当我将一个文件添加到我的存储库然后更新存储库的另一个位置(例如在 CI 过程中)时,就会出现“找不到匹配项”错误。然后当我删除到整个文件夹并再次克隆它时,没有问题并且新添加的文件在那里。更新和删除不会出现问题

当我执行“a”验证时,显示以下内容:

data/test.txt.i@54: missing revlog! 54: empty or missing test.txt test.txt@54: b80de5d13875 in manifests not found 3 integrity errors encountered! (first damaged changeset appears to be 54)



知道是什么原因造成的吗?

编辑

完整的跟踪:

ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: abort: data/test.txt.i@b80de5d13875: no match found! . Process command: hg update --noninteractive at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo) at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial.GetSource(IIntegrationResult result) at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Build(IIntegrationResult result) at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)

最佳答案

“存储库损坏”在这里不是专利,因为您可以再次克隆并检索所有内容(旧的和新添加的)。
所以要检查的不同点是:

1/某种进程冲突(阻止 data/test.txt.i@b80de5d13875 被写入,即使文件内容被记录)
2/ hg revlog hg debugindex , 查看您的存储库中实际记录的版本。
3/ hg verify 排除任何 repo 腐败。
4/check the integrity of your repo

关于Mercurial 添加新文件没有找到匹配错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3005896/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com