无法连接到Subversion本地存储库 [英] Unable to connect to Subversion Local repository

查看:210
本文介绍了无法连接到Subversion本地存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows 7 64位系统上安装了Subversion 1.8.8和TortoiseSVN 1.8.5 64位系统.我已经使用TortoiseSVN在C:/Projects/SVNRepository中创建了一个本地存储库.尝试从NetBeans导入项目时,出现此错误.

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'

推荐答案

首先:切勿使用file://协议.始终将Subversion作为服务器运行.

First: Never use the file:// protocol. Always run Subversion as a server.

如果没有其他设置,请将svnserve设置为 Windows服务.它快速简便,并且没有使用file://所遇到的问题.

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

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).

因此,如果您使用的是Subversion,请始终将其作为服务运行.您可以使用 VisualSVN 之类的软件包,该软件包将安装Apache并允许Subversion在Windows上运行该软件包,也可以按照说明进行操作从上方将svnserve用作Windows服务.

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.

这篇关于无法连接到Subversion本地存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆