在eclipse下使用svn时,总是报这个错误:
Share project was failed.
svn: E180001: Unable to open an ra_local session to URLsvn: E180001: Unable to open repository 'file:///H:/Repository/MobileApplications/Android/Application/Source'
svn: E160043: Expected FS format between '1' and '5'; found format '6'.
首先吐槽一下百度!找了几个小时都没有一个有用的答案!坑爹!
然后终于在stackoverflow上找到了答案
原文链接:
http://stackoverflow.com/questions/17278061/svn-e180001-unable-to-open-an-ra-local-session-to-url
答案原文如下:
This Error said that FS format between SVN server(TortoiseSVN) and SVN client (Eclipse SVN plugin) is not equal. To fix this problem, go to repository path and change format version number.
The format file contain FS format version number:
x:\repos\db\format
6
layout sharded 1000
Replace 6 with 5 .
本人翻译如下:
这个错误是由于SVN server(TortoiseSVN) 和 SVN client (Eclipse SVN plugin)的 FS 格式不匹配,去你的svn文件夹里找到这个x:\你的svn文件夹\db\format文件,记事本打开,将6改为1至5之间的一个数,建议改为5.
但是我在修改format文件夹时发现它是不允许修改的,然后各种百度(因为谷歌host刚好今天失效)又是各种坑,然后我就尝试了如下方法,终于修改成功了:
把format文件夹复制到桌面,在桌面修改后点击保存——>选择默认保存为txt文件——>将桌面上的format删除——>将刚刚保存下来的format.txt文件去掉后缀名变成format文件——>将该format文件替换掉 x:\你的svn文件夹\db\format文件——>OK了