I've been following this guide for installing SVN in Ubuntu. I'm using Ubuntu 14.04.
I have an existing java project in my workspace:
/home/plattens/workspace/jguids30ma
I've created a repository for the project:
svnadmin create /svn/repository/jguids30ma
But so far all my attempts to import the existing project into the repository have failed.
svn import /svn/repository/jguids30ma/ file:///home/plattens/workspace/jguids30ma -m "Initial check in"
Resulting in:
svn: E180001: Unable to connect to a repository at URL 'file:///home/plattens/workspace/jguids30ma'
svn: E180001: Unable to open an ra_local session to URL
svn: E180001: Unable to open repository 'file:///home/plattens/workspace/jguids30ma'
Where have I gone wrong?
Try to launch svnserve
like this:
svnserve -d -r /svn/repository/jguids30ma
From svn book:
Once we successfully start svnserve as explained previously, it makes every repository on your system available to the network. A client needs to specify an absolute path in the repository URL. For example, if a repository is located at /var/svn/project1, a client would reach it via svn://host.example.com/var/svn/project1
So you should try to use svn protocol instead of file like this:
svn import /svn/repository/jguids30ma/ svn://[IP of your server]/home/plattens/workspace/jguids30ma -m "Initial check in"
No comments:
Post a Comment