Tuesday, April 8, 2008

Deployment SVN (Subversion) for Windows as Home Version Control System.

I need to use Version Control System in home. It is have requirement: should be free and for Windows XP. I selected the SVN (http://subversion.tigris.org/) version at 1.4.8.12137 (It’s latest in this moment).

After installation in InstalataionFolder (default: “C:\Program Files\Subversion” you can select another) you should added repository folder and start server of SVN.

You can register repository folder to use svnadmin. First off all you should create repository folder – RepositoryFolder (I used “D:\Programming\svn”)

You do start command window (cmd.exe) in InstalataionFolder\bin and do type next command: svnadmin create "RepositoryFolder" (for example in my case: svnadmin create "D:\Programming\svn").

Note: Pay attention, we use some slash of Windows (“\”).

Now you should create service for automatic start the svn server. We use “sc.exe” for this target. “sc.exe” is located in system folder (It’s “C:\Windows\Sytstem32” in my PC). Create service: sc create svn binpath= "InstalataionFolder\bin\svnserve --service -r
"RepositoryFolder
" displayname= "SVN Server" depend= Tcpip start= auto

(In my case “sc create svn binpath= "C:\Program Files\Subversion\bin\svnserve --service -r "D:\Programming\svn" displayname= "SVN Server" depend= Tcpip start= auto”).

Note: Pay attention, we use two symbols of minuses before “service” and set space after each equals sign.

After we should uncomment “password-db = passwd” section in configure file – RepositoryFolder\conf\svnserve.conf (D:\Programming\conf\svnserve.conf in my case) and configure access to svn. We uncomment “auth-access” and uncomment and change value to “none” for “anon-access” (I deny anonymous access to svn).

You should create pair login-password in section [users] of file “RepositoryFolder\conf\passwd” (D:\Programming\conf\passwd in my case)

Now, you can start “SVN Server” service (Press Win+R and type in Run window the “services.msc” and start “SVN Server” or other with name that you have set).

And the end of article, I use a TortoiseSVN (http://tortoisesvn.tigris.org/) as client.

6 comments:

Rat's Blog said...

VisualSVN is much user-friendly :)
It took me about 2 minutes to download it, install it, create 1 user and 1 repository :)

RredCat said...

I wanted to test svn that was used in my work (:

RredCat said...

VisualSVN Server (VisualSVN Server) is used at work now :), so I want test it at home!

Harapu said...
This comment has been removed by the author.
Anonymous said...

visualsvn does the trick for most of the people; but bitnami stack for subversion with apache is also available.

Anonymous said...

Good words.