如何修复 Mercurial 存储库崩溃和回滚后的问题?
我使用了 Mercurial 崩溃命令,然后尝试回滚)。我现在知道这是我不应该做的事情。
hg status
abort: working directory has unknown parent 'e1f07eea60bf'!
工作副本至少包含一个相当新的版本,但我无法提交它。
hg commit
abort: 00changelog.i@e1f07eea60bf: no node!
您怎样才能最好地从这种情况中恢复过来?至于历史,无论如何,大部分已经被推送到中央存储库了。
I used the Mercurial collapse command and then attempted a rollback). I now know that this is something that I shouldn't have done.
hg status
abort: working directory has unknown parent 'e1f07eea60bf'!
The working copy contains a reasonably recent version, at least, but I can't commit it.
hg commit
abort: 00changelog.i@e1f07eea60bf: no node!
How would you best recover from this situation? With regards to history, most of it has been pushed to the central repository anyway.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试
hg debugsetparent xxxx
,这不是世界上最安全的命令,但它应该可以帮助您。将父版本设置为日志中的修订版本。Try
hg debugsetparent xxxx
, It's not the safest command in the world, but it should help you out. Set the parent to a revision that is in your log.