Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 无法连接到URL处的存储库';svn://localhost'_Windows_Svn - Fatal编程技术网

Windows 无法连接到URL处的存储库';svn://localhost'

Windows 无法连接到URL处的存储库';svn://localhost',windows,svn,Windows,Svn,我使用管理员帐户在Windows7操作系统上安装了Subversion软件包1.7版 我使用以下命令创建了存储库:svnadmin create“c:\svn\u repository” 我修改了svnserve.conf和passwd文件:anon-access=read,auth-access=write,以及password db=passwd 我将Subversion安装为windows服务,并使用以下命令启动它: sc create svnserver binpath= "C:\Pro

我使用管理员帐户在Windows7操作系统上安装了Subversion软件包1.7版

我使用以下命令创建了存储库:
svnadmin create“c:\svn\u repository”

我修改了
svnserve.conf
和passwd文件:
anon-access=read
auth-access=write
,以及
password db=passwd

我将Subversion安装为windows服务,并使用以下命令启动它:

sc create svnserver binpath= "C:\Program Files (x86)\Subversion\bin\svnserve.exe --service -r c:\svn_repository" DisplayName= "Subversion" depend= tcpip start= auto
我还将变量
SVN\u EDITOR
设置为:
set SVN\u EDITOR=c:\windows\system32\notepad.exe

我面临的问题是调用以下命令时:

svn mkdir svn://localhost/myproject
我收到以下错误:

svn: E200002: Unable to connect to a repository at URL 'svn://localhost'
svn: E200002: C:\svn_repository\conf\svnserve.conf:19: Option expected

检查svnserve.conf中指定的每个选项行开头的空格(在您的情况下,检查svnserve.conf的第19行,如果该行前面有空格,请将其删除)

-r c:\svn_repository“
svnadmin create c:\svn_repository
不兼容


-r定义存储库的公共根并且不能是存储库本身

当然问题在于选项开头的空白。感谢您的帮助。