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
4. Point your browser to http://localhost/svn. You see 403 Forbidden
5. Set up the SVN_EDITOR environment variable
6. “cd” to C:\svn_repository and run “svnadmin create repo”. This will create a repository called “repo”
7. Point your browser to http://localhost/svn/repo/. You should be able to see the repository now.
8. Edit svnserve.conf under C:\svn_repository\repo\conf and uncomment the following line
9. To allow anonymous access, uncomment the following lines in svnserv.conf
10. Add user in passwd file in C:\svn_repository\repo\conf. Format is “<user name> = <password>”
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
13. Create a Subversion project. Note you must use the repository name you created earlier
14. Notepad will be opened. Enter any description for your project, and exit Notepad
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.
Alternatively you can point your browser to http://localhost/svn/repo
17. Download and install TortoiseSVN.
18. Checkout “myproject” from Subversion.
19. Create your source files under the project folder. Then you can add and commit them.
It is done now. Enjoy !
Popularity: 2% [?]