Setup
sudo apt-get install subversion
Web-Dav apache module is contained in the libapache2-svn
sudo apt-get install libapache2-svn
Enable Web-Dav
Creating Repositories
First go to or create the directory you want to create the repositories in for this example we've created the svn-reps directory in /var/
sudo mkdir /var/svn-reps
The svnadmin allows you to create svn repositories and allows you to perform several maintenance operations on the repositories
Heres an example of how to create 2 different types of repositories Prior to Subversion 1.2, the default was to use Berkeley DB; the default is now FSFS. You can explicitly choose the filesystem type using the --fs-type argument, which accepts as a parameter either fsfs or bdb.
Prior to Subversion 1.2, the default was to use Berkeley DB; the default is now FSFS. You can explicitly choose the filesystem type using the --fs-type argument, which accepts as a parameter either fsfs or bdb.
#How to create an FSFS-backed repository svnadmin create --fs-type fsfs /var/svn-reps/project_alpha #How to create a Berkeley-db-backed repository svnadmin create --fs-type bdb /var/svn-reps/project_omega
The repositories directory needs proper permissions for apache and other users
References
http://svnbook.red-bean.com/en/1.4/svn.intro.whatis.html
http://www.howtoforge.com/debian_subversion_websvn - Debian instructions more straight forward
http://confluence.atlassian.com/display/CROWD/Integrating+Crowd+with+Subversion - Integrating with Crowd