• 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
    一般可以从(RepositoriesProjectNamedb evpropsX),其中的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资源中增加新的版本号。

    自己遇到的问题:

    提交版本的时候服务器异常中段,造成版本号错误,提示有589这个版本,实际查看服务器db/revs和db/revprops文件夹下只到587版本,修改项目根目录下db/current文件,用记事本打开,把“589”改成“587”保存后正常

  • 相关阅读:
    python3 numpy基本用法归纳总结
    MySQL 中的三中循环 while loop repeat 的基本用法
    什么是网关及网关作用
    网络扫描工具nmap
    nmap基本使用方法
    nmap脚本使用总结
    用Delphi将数据导入到Excel并控制Excel
    delphi Form属性设置 设置可实现窗体无最大化,并且不能拖大拖小(写一个WM_EXITSIZEMOVE的空函数)
    Delphi 数据类型列表
    一个队列类的实现(比delphi自带的速度快70倍)(线程安全版本)
  • 原文地址:https://www.cnblogs.com/zbl3033/p/5010625.html
Copyright © 2020-2023  润新知