svnsvnadmin

svn: Local URL 'file://xxx.xxx.xxx.xxx/root/svn_repo' contains unsupported hostname


I'm using svn and svnadmin of v1.6.13.

[root@ns ~]# pwd
/root

[root@ns ~]# svn --version
svn, version 1.6.13 (r1002816)
   compiled Oct 11 2010, 08:18:53

[root@ns ~]# svnadmin --version
svnadmin, version 1.6.13 (r1002816)
   compiled Oct 11 2010, 08:18:53

I created a local repository

[root@ns ~]# svnadmin create svn_repo

then I checked out this repo

[root@ns ~]# svn co file://192.168.xxx.xxx/root/svn_repo
svn: Unable to open an ra_local session to URL
svn: Local URL 'file://192.168.xxx.xxx/root/svn_repo' contains unsupported hostname

There is no version issue because both version are the same.

Websvn is not needed, and command line is just enough for me.

How to fix it?


Solution

  • Read the docs about proper defining URL with file protocol!!!

    SVN URL has the following format: (protocol)://(servername)/(path)

    Your local repo must be addressed as file:///root/svn_repo