This works with leopard.
Firstly turn on web sharing, web sharing uses apache2 under the hood although its config is bizarre to say the least.
Create a repository:
sudo mkdir /usr/local/subversion/
sudo svnadmin create /usr/local/subversion/Test
Ensure the repository is readable by apache
sudo chown -R _www /usr/local/subversion/
Setup a password file (For later)
sudo htpasswd -cm /usr/local/subversion/svn-auth-file scott
(enter password)
Now for the first bizarre config, create a file in /etc/apache2/other called dav.conf
Which contains:
loadModule dav_svn_module libexec/apache2/mod_dav_svn.so
<Location /svn>
DAV svn
SVNParentPath /usr/local/subversion
SVNListParentPath On
SVNAutoversioning on
AuthType Basic
AuthName “Scott Subversion”
AuthUserFile /usr/local/subversion/svn-auth-file
Require valid-user
</Location>
Restart apache:
sudo apachectl restart
To upload the project
svn import <project> http://localhost/svn/Test
That looks remarkably complicated. I guess I didn’t need to do most of that because I didn’t need the web interface…
PS: svnX might be handy…
How do you use it .. locally or via ssh+svb://
Oh, just locally. If I wanted to do anything over t’network, I’d probably use something like devjavu or sourceforge1 or wherever. Let someone else deal with the boring bit 🙂 I don’t do a lot with svn at the moment, though, only the real basics.
1 Or even nexumoja for some things.