简体   繁体   English

无法连接到Subversion本地存储库

[英]Unable to connect to Subversion Local repository

I have installed Subversion 1.8.8 and TortoiseSVN 1.8.5 64-bit on Windows 7 64-bit. 我已经在Windows 7 64位上安装了Subversion 1.8.8和TortoiseSVN 1.8.5 64位。 I have created a local repository at C:/Projects/SVNRepository using TortoiseSVN. 我已经使用TortoiseSVN在C:/ Projects / SVNRepository中创建了一个本地存储库。 While trying to import project from NetBeans i am getting this error. 尝试从NetBeans导入项目时,出现此错误。

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'

First: Never use the file:// protocol. 第一:切勿使用file://协议。 Always run Subversion as a server. 始终将Subversion作为服务器运行。

If nothing else, setup svnserve as a Windows service . 如果没有其他设置, svnserve设置为Windows服务 It's fast and easy, and doesn't have the problems that using file:// has. 它既快速又简单,并且没有使用file://遇到的问题。

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. Netbeans使用其自己的基于Java的Subversion客户端,并且Netbeans中的客户端很可能基于较早版本的Subversion。 It simply not recognizing the new Subversion 1.8 server format. 它只是无法识别新的Subversion 1.8服务器格式。 This is another reason not to use file:// . 这是不使用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). 如果您使用的是服务,则可以将任何客户端运行到原始Subversion 1.0版本(尽管您可以将服务器设置为拒绝来自1.5之前的客户端的任何提交-您应该这样做)。

So, if you're using Subversion, always run it as a service. 因此,如果您使用Subversion,请始终将其作为服务运行。 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. 您可以使用类似VisualSVN的软件包,该软件包将安装Apache并允许Subversion在Windows上运行该软件包,也可以按照上面的说明进行操作,并将svnserve用作Windows服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM