Subversion

13 01 2008

Apart from being used as a developer repository, subversion is used by Trac.

Subversion installation was pretty straightforward.  I installed the RPMs with yum:

# yum install subversion mod_dav_svn

–Optionally install bindings for languages

# yum install subversion-perl subversion-ruby  subversion-java

– create a repository

# svnadmin create /var/www/svn/repository-name

– edit httpd.conf (the RPM creates /etc/httpd/conf.d/subversion.conf)

LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so
– create a location

<Location /svn>
Options Indexes
Order allow,deny
Allow from all

DAV svn
SVNParentPath /var/www/svn

<LimitExcept GET PROPFIND OPTIONS REPORT>
AuthType Basic
AuthName “Subversion Login”
AuthUserFile /var/www/access/.htpasswd
Require valid-user
</LimitExcept>
</Location>

– restart apache

Note for all you rocketscientists who use the SVNParentPath directive:

http://localhost/svn returns 404 Forbidded.  Navigate to http://localhost/svn/respository-name  works.

Set up svn to use HTTPS optionally.


Actions

Information

Leave a comment