Sunday, December 2, 2018

How do I import existing project into SVN repository?



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

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...