SVN版本损坏 [英] SVN revision corrupted

查看:685
本文介绍了SVN版本损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的SVN版本22026已损坏。我已经通过验证的svnadmin命令验证。我在DB \\的revprops和\\ DB \\文件夹转速手动验证22026的文件。 22026文件在文件夹中的revprops空的,但是内容是在转速文件夹中。它看起来像改版22026属性文件已损坏或空的。

My SVN revision 22026 is corrupted. I have verified by using svnadmin verify command. I manually verified the 22026 file in db\revprops and in \db\revs folder. 22026 file is empty in revprops folder but content is available in revs folder. It looks like revision 22026 property file is corrupted or empty.

我用Rsync备份,所以我也备份有同样的问题。如何纠正这一问题。

I have used RSYNC backup so my backup also having same issue. How to rectify this issue.

推荐答案

您可以尝试两件事情:

转储你回购和加载它再次忽略属性:

Dump you repo and load it again ignoring properties:

svnadmin dump REPOS_PATH > full.dump
svnadmin load --bypass-prop-validation NEW_REPOS_PATH < full.dump

如果上述方法无效,排除您的问题的修订,如本 SO回答:

If above doesn't work, exclude your problematic revision, as described in this SO answer:

$ svnadmin dump -r1:22025 my_repos > dumpfile.dump
$ svnadmin dump --incremental -r22027:HEAD my_repos >> dumpfile.dump
$ svnadmin load my_repos_new < dumpfile.dump

既然你写的内容为在转速文件夹中找到的你也许可以通过手工一旦你恢复你的回购申请这个版本。

Since you wrote "content is available in revs folder" you might be able to apply this revision by hand once you recover your repo.

这篇关于SVN版本损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆