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?

1

1 Answer

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://

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"
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like