问题
I have installed Subversion 1.8.8 and TortoiseSVN 1.8.5 64-bit on Windows 7 64-bit. I have created a local repository at C:/Projects/SVNRepository using TortoiseSVN. While trying to import project from NetBeans i am getting this error.
org.apache.subversion.javahl.ClientException: E180001: Unable to open an ra_local session to URL
E180001: Unable to open repository 'file:///C:/Projects/SVNRepository'
E160043: Expected FS format between '1' and '5'; found format '6'
回答1:
First: Never use the file://
protocol. Always run Subversion as a server.
If nothing else, setup svnserve
as a Windows service. It's fast and easy, and doesn't have the problems that using file://
has.
Netbeans is using its own Java based Subversion client, and it is very likely the client in Netbeans is based on an earlier version of Subversion. It simply not recognizing the new Subversion 1.8 server format. This is another reason not to use file://
. If you were using a service, you could run any client down to the original Subversion 1.0 version (although you can setup your server to reject any commits from clients older than 1.5 -- and you should).
So, if you're using Subversion, always run it as a service. You can use a package like VisualSVN which will install Apache and allow Subversion to run through that on Windows, or you can follow the directions from above and use svnserve
as a Windows service.
来源:https://stackoverflow.com/questions/23037641/unable-to-connect-to-subversion-local-repository