Setting up Subversion on Ubuntu

See here: https://help.ubuntu.com/community/Subversion

Ading new repositories:

<code>$ sudo mkdir /home/svn
   $ cd /home/svn
   $ sudo mkdir myproject
   $ sudo chown -R www-data:subversion myproject
   $ sudo chmod -R g+rws myproject

#make repo
 $ sudo svnadmin create /home/svn/myproject

#start svn server - --foreground keeps output in foreground for debugging server activity
svnserve -d --foreground -r /home/svn

To configure access to to the new project, edit the /home/svn/myproject/conf/svnserve.conf file created by default and uncomment the password-db line. Save the file.Edit the passwd file in the same dir and add a user and password to access this project.

Start the server with the svnserve command

Once the server is started, you can connect to the repository using a SVN client in Eclipse like Subclipse. Connect to the repository using svn://address/myproject as the project URL and root.

To add a new source project from Eclipse into the repository, select Team… Share Project. ‘Add to Source Control’ for each of the dirs in the project, and then ‘Commit’ the files.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.