Mercurial Repo:最近提交中的腐败
我相信我最近在 Mercurial 中的提交已经损坏。我无法再提交任何内容,也无法回滚。
我运行了 hg verify
,它建议我应该运行 hg recovery
。然后我按照建议运行 hg recovery
,现在收到错误:
abort: index 00manifest.i is Corrupted!
根据这篇文章: http://osdir.com/ml/version-control.mercurial.general/2007-03/msg00099.html 我应该能够从 中删除最后 64 位00manifest.i
文件并重新开始工作。
这是正确的吗?我该怎么做?
附言。到目前为止我所做的一切都是在原始存储库的克隆上。
非常感谢,
安迪
I believe my most recent commit in Mercurial has become corrupt. I cannot commit anything anymore, nor can I rollback.
I ran hg verify
which suggested I should run hg recover
. I then ran hg recover
as suggested and I am now getting the error:
abort: index 00manifest.i is corrupted!
According to this post: http://osdir.com/ml/version-control.mercurial.general/2007-03/msg00099.html I should be able to remove the last 64 bits from the 00manifest.i
file and start working again.
Is this correct and how would I go about doing so?
PS. Everything I have done so far has been on a clone of the original repository.
Many thanks,
Andy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Python 控制台截断
00manifest.i
:首先,以二进制模式读取该文件。
data
只是一个字符串。然后使用切片来写回除最后 64 字节之外的所有字节,同样以二进制模式。You can truncate
00manifest.i
using a Python console:First, the file is read in binary mode.
data
is just a string. Then slicing is used to write back all but the last 64 bytes, again in binary mode.