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.