SVN无法读取cruuent修复方法 Can't read file : End of file found 文件:txn_current、current

来源:互联网 发布:智能网络电力仪表 编辑:程序博客网 时间:2024/06/01 07:44

SVN早上又出错了,根据VisualSVN中的强力提示。。很快找到了解决方法,记录一下。

原因:
在commit文件时,svn服务器被强行关闭了,导致版本信息文件写入不成功,重启后读取信息就不正确了!


解决办法:
重新将正确的版本信息写入到current、txn-current文件。

1.明确版本号(建议回滚一个版本,例如300,取299,以防最新的commit内容也不正常)
并删除最新版本(\Repositories\ProjectName\db\revprops\X)
2.更新txn-current
3.更新current
4.从svn服务器上刷新文件夹,能够阅览版本库证明问题已解决。

 

附录:
了解文件作用
repository/db/current  -- 记录当前最新版本号
repository/db/txn-current  -- 记录版本库中版本信息存放文件夹,例如E:\Repositories\AnyWellSourceCode\db\revprops\0,当前值就是0,编辑时,必须在0后面加回车


http://www.cnblogs.com/vegaliming/archive/2012/05/01/2478351.html