Subversion 无法读取文件中的长度行
当我提交时我没有错误。现在我尝试检查并收到此错误
Can't read length line in file 'c:\svn\db\revs\0\14'
我已经尝试了旧版本,但它也不起作用。这是否意味着我在颠覆中失去了一切?
When I commit I had no error. Now I tried to check out and I got this error
Can't read length line in file 'c:\svn\db\revs\0\14'
I have tried older revision it doesn't work either. Does it mean I lost everything in subversion ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您可以运行
来检查您的存储库。
如果您使用 Berkeley db(您不应该),
可能会有所帮助。
You can run
to check your repository.
In case you use Berkeley db (you shouldn't),
may help.
我遇到了同样的问题,这是我在不管理 SVN 存储库的情况下发现的简单修复。
问题已修复。我认为这样您就可以从存储库中丢失该文件的先前版本,但这对我来说不是问题。
希望这些信息可以帮助您。
I had the same problem and here is simple fix I found without administering the SVN repository.
problem fixed. I think this way you loose the previous versions of the file from the repository but this was not a problem for me.
Hope this info can help you.
看来 Berkeley 数据库已损坏,下次您应该使用
FSFS
后端。现在请参阅 Berkeley DB 恢复< /a>.Looks like Berkeley database have been corrupted, you should use
FSFS
backend next time. For now see Berkeley DB Recovery.这似乎是 SVN 错误或某些硬件故障。我会开始寻找备份。
如果您没有 - 您可以将本地工作副本提交到新存储库中。
This seems to be SVN bug or some H/W failure. I would start looking for a backup.
If you don't have one - you can commit your local working copy in new repository.
看起来您的修订版之一的数据库已损坏。
因此,首先您可以更新到以前的版本并更改数据库中的最后一个版本:
然后您必须找出哪个目录被破坏并在存储库中替换它。
[损坏] - 损坏目录的名称。
Looks like db have been corrupted for one of your revision.
So, at first you can update to previous revision and change last revision in db:
Than you must find out what directory is broken and replace it in repository.
[corrupted] - name of your corrupted directory.