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
Mine was called: TortoiseSVN-22.214.171.12406-win32-svn-1.4.4.msi
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”
(or C:\Documents and Settings\Subversion Repository\conf or whatever)
Edit authz file
aaron = rw
Edit passwd file
aaron = password
Edit svnserve.conf file
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
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/