RSS Feed for This PostCurrent Article

Setting Up Subversion on Windows

Here are the summarized steps of setting up Subversion on Windows.

1. I used CollabNet Subversion for Windows. You can download it from http://www.collab.net/downloads/subversion/

2. Run the installer. Subversion will be installed under C:\Program Files\CollabNet Subversion Server. The default Subversion repository is C:\svn_repository.

3. Point your browser to http://localhost. You should be able to see the following

image

4. Point your browser to http://localhost/svn. You see 403 Forbidden

image

5. Set up the SVN_EDITOR environment variable

image

6. “cd” to C:\svn_repository and run “svnadmin create repo”. This will create a repository called “repo”

cd c:\svn_repository
svnadmin create repo

7. Point your browser to http://localhost/svn/repo/. You should be able to see the repository now.

image 

8. Edit svnserve.conf under C:\svn_repository\repo\conf and uncomment the following line

password-db = passwd

9. To allow anonymous access, uncomment the following lines in  svnserv.conf

anon-access = read
auth-access = write

10. Add user in passwd file in C:\svn_repository\repo\conf. Format is “<user name> = <password>”

### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.
 
[users]
# harry = harryssecret
# sally = sallyssecret
user1 =    mypassword

11. Alternatively you may need to open up Windows firewall

Before starting the server, the firewall must be notified that this particular port is going to be used. To enable this port in the Windows firewall, follow the instructions found here: http://www.microsoft.com/windowsxp/using/security/internet/sp2_wfexceptions.mspx

Note: svnserve.exe is the program name which needs to be added to the exceptions list. Alternatively, you can also use the port where you decide to run the server. By default, svnserve runs on 3690.

12. You can start Subversion as a Windows service or command line. I prefer to run it as Windows service

image

13. Create a Subversion project. Note you must use the repository name you created earlier

svn mkdir svn://localhost/repo/myproject

14. Notepad will be opened. Enter any description for your project, and exit Notepad

image

15. You’ll now be prompted for credentials. Enter the user name and password as required.

16. Run “svn list svn://localhost/repo” You should be able to see projects created under the repository.

image

Alternatively  you can point your browser to http://localhost/svn/repo

image

17. Download and install TortoiseSVN.

18. Checkout “myproject” from Subversion.

image

19.  Create your source files under the project folder. Then you can add and commit them.

image

image

It is done now. Enjoy !

Popularity: 2% [?]


Trackback URL


RSS Feed for This Post1 Comment(s)

  1. Tony | Jun 3, 2010 | Reply

    Useful post!!!

RSS Feed for This PostPost a Comment