Getting Started with Subversion at Home

We’re looking at switching to Subversion for our version control system at work. To get more experience with it, I decided to stet up an instance at home so that I can play. If you’re a Windows users and interested, here are my notes. Hopefully you’ll find them useful.

Download the latest Windows Installer for Subversion
Mine was called: svn-1.4.4-setup.exe

Download TortoiseSVN
Mine was called: TortoiseSVN-

Install Subversion
I used all of the defaults, but changed the install path to D:\svn\.

Create a repository
run: svnadmin create D:\svn\repository
or: svnadmin create “C:\Documents and Settings\Subversion Repository”

Configure Subversion
open: D:\svn\repository\conf
(or C:\Documents and Settings\Subversion Repository\conf or whatever)

Edit authz file
for example:
aaron = rw

Edit passwd file
for example:
aaron = password

Edit svnserve.conf file
for example:
auth-access = write
password-db = passwd
authz-db = authz
realm = My Repository

Install Subversion as a Windows Service
run the following making path changes as needed:
sc create svnserve binpath= “D:\svn\bin\svnserve.exe –service –root D:\svn\repository” displayname= “Subversion Repository” depend= Tcpip

(Note: the above is all one line and needs spaces after the equal signs.   If you used a path with spaces, you’ll need to quote it with escaped inner quotes: \”.)

go to: Start\Settings\Control Panel\Administrative Tools\Services
find the Subversion Service
start it up, and set it to start automatically if you want

Install TortoiseSVN
I deselected the English (GB) dictionary, but left everything the same.
Restart when it tells you to, or once you’re ready.

Connecting to your repository with TorticeSVN
Right click in a folder or on the desktop and select TortiseSVN->Repo-Browser
Enter your root url: svn://localhost/

That’s it.
More resources:
Free Subversion Book
Main Subversion Website
Subversion FAQ
Main TortoiseSVN Website
TortoiseSVN FAQ

Leave a Reply