【问题描述】:MyEclipse插件版本1.4,客户端TortoiseSVN 1.6.6,用客户端commit代码之后,无法在MyEclipse下对工程就行update等操作,提示错误信息:This client is too old to work with working copy '.'; please get a newer Subversion client
【问题分析】:网络一气搜集之后,发现问题所在:.svn目录,里面保存着svn需要的一些版本信息,用TortoiseSVN去操作,会在.svn里增加一些文件。如果TortoiseSVN的版本比插件版本要高,那么再回到低版本去工作,就会有兼容性错误,因为老的客户端无法识别那些。
【解决方法】:
方案1(未试验,理论可行):
在线更新安装插件
help->sofeware updates-> find and install
方案2(测试可行):
一、下载:change-svn-wc-format.py(见附件) ,这是一个Python做的script,所以需要先下载Python
注意:1)从目前来看,最好使用Python 2.6,如果是用最新的3.0版本会出现问题。 比如无法打开Script,出现异常等等。2)安装后在环境变量的path中追加python安装路径:"C:\Python26" ;
二、1)把change-svn-wc-format.py放入C盘根目录,运行-->cmd-->cd C:\
2)执行修改:
Java代码
C:\>change-svn-wc-format.py E:\work\sadapter 1.4 --force参数说明:第一个change-svn-wc-format.py是执行脚本,第二个E:\work\sadapter是工程路径,第三个1.4是要修改到的版本,第四个--force不是必须的,在执行失败的情况下可以加入此参数。
3)结果:一阵processing:
引用
……Checking whether WC format can be converted
Writing WC format
Converted WC at 'E:\work\sadapter' into format 8 for Subversion 1.4
再去MyEclipse下更新done:
引用
…… A E:/work/sadapter/src/main/resources/efs/sadapter/config/spring/order/orderContext.xml
D E:/work/sadapter/src/main/resources/efs/sadapter/config/spring/contract/custRouteContext.xml
D E:/work/sadapter/src/main/resources/efs/sadapter/config/spring/contract/custInfo.xml
D E:/work/sadapter/src/main/resources/efs/sadapter/config/spring/contract/custAcctContext.xml
U E:/work/sadapter/src/main/resources/efs/sadapter/config/spring/contract/contractContext.xml
U E:/work/sadapter/src/main/filter-resources/efs/sadapter/config/spring/applicationContext.xml
Updated to revision 1235.
===== File Statistics: =====
Deleted: 19
Added: 14
Updated: 17
D E:/work/sadapter/src/main/resources/efs/sadapter/config/spring/contract/custRouteContext.xml
D E:/work/sadapter/src/main/resources/efs/sadapter/config/spring/contract/custInfo.xml
D E:/work/sadapter/src/main/resources/efs/sadapter/config/spring/contract/custAcctContext.xml
U E:/work/sadapter/src/main/resources/efs/sadapter/config/spring/contract/contractContext.xml
U E:/work/sadapter/src/main/filter-resources/efs/sadapter/config/spring/applicationContext.xml
Updated to revision 1235.
===== File Statistics: =====
Deleted: 19
Added: 14
Updated: 17