SVN错误及处理

在SVN服务控制台打开资源库“SVN无法读取current” ---摘自网络 写道
SVN无法读取current修复方法 Can't read file : End of file found

文件:repository/db/txn_current、repository/db/current
 
其中current记录当前最新版本号,txn_current记录版本库中版本号文件所存放文件夹

原因:在提交文件时,svn服务器被强行关闭了,导致版本信息文件写入不成功,版本记录文件txn_current、current成了乱码。

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

一般最新的那个版本会是错误的,只能回滚到上一版本。找到最新的版本,一般就是出错的那个版本,假设出错的是9010

一般可以从(\Repositories\ProjectName\db\revprops\X),其中的X是里面的文件夹名,几乎所有的版本号都能在这些目录里找到对应的文件名

找到最大的版本号9010,如果用记录本打开该文件是乱码,应该就是出错了,那就删除该文件,相应的,上一版本的版本号就是9009,对应的X一般就是9的文件夹。

更新txn-current,里面写上X文件夹名"9",然后回车换行!保存。

更新current,里面写上9009,然后回车换行!保存。

至此,应该解决了该问题。

 

 

服务器资源文件能访问之后,eclipse同步问题接踵而来,本地的文件版本比服务器的文件版本要高,无法同步及提交文件了怎么办?

 

错误一 写道

同步 SVNStatusSubscriber 时报告了错误。1 中的 0 个资源已经同步。
同步 /OPRO_IMS-I_Peento/src 时发生错误:Error getting status for resource F/OPRO_IMS-I_Peento/src org.apache.subversion.javahl.ClientException: No error
svn: A reported revision is higher than the current repository HEAD revision.

Error getting status for resource F/OPRO_IMS-I_Peento/src org.apache.subversion.javahl.ClientException: No error
svn: A reported revision is higher than the current repository HEAD revision.

org.apache.subversion.javahl.ClientException: No error
svn: A reported revision is higher than the current repository HEAD revision.

org.apache.subversion.javahl.ClientException: No error
svn: A reported revision is higher than the current repository HEAD revision.

 

错误二 写道


org.apache.subversion.javahl.ClientException: Invalid filesystem revision number
svn: No such revision 9010

org.apache.subversion.javahl.ClientException: Invalid filesystem revision number
svn: No such revision 9010

  

解决办法:

   很简单,整几个能提交的文件直接提交到SVN,再次同步工程,问题解决,原因是:提交的文件会在SVN资源中增加新的版本号。

你可能感兴趣的:(SVN提交文件时服务器强行关闭)