This is a very short tutorial — it should take you about 15 minutes from start to end — that explains how to run your own SVN server, install WebSVN, which is a web front-end to browse your SVN repository, and apply Drupal syntax highlighting to it.
An example can be seen used to be online at websvn.wimleers.com
.
SVN {#svn}
I run my own SVN repository, because it’s much faster (svn://
FTW), I don’t have size limitations, I can ensure it’s backed up properly and because it’s so easy. I’m going to assume you’ve already installed svn
on your (Linux) server.
First, decide where you’re going to put all your SVN repositories. I put mine at /data/svn
. Whenever I use the e
command, use your favorite editor instead (for me e
is an alias for TextMate). Then go through these simple steps:
cd /data/svn
svnadmin create reponame
Create a SVN repository with the name reponame
. This creates a certain directory structure.