Windows 无法连接到URL处的存储库';svn://localhost'
我使用管理员帐户在Windows7操作系统上安装了Subversion软件包1.7版 我使用以下命令创建了存储库: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
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定义存储库的公共根并且不能是存储库本身当然问题在于选项开头的空白。感谢您的帮助。