Pages

Thursday, July 5, 2012

Subversion configuration in windows

Subversion configuration in windows

To create the repository, issue the following command:
svnadmin create c:/svnrepos


Create your SVN user: Now that your repository is successfully set up, you'll need to create an svn user.  Simply open the file c:/svnrepos/conf/svnserve.conf of your choice and add the following:

anon-access = none
auth-access = write
password-db = passwd
Now you'll need to create a password file: Open passwd file which is located at
c:/svnrepos/conf/passwd
Add a line in that file for your user in the format =
Example_user_name = example_password
Run the svn service: open command prompt (run as administrator)
sc create svnserve binpath= "\"C:\Program Files (x86)\Subversion\bin\svnserve.exe\" --service -r C:\svnrepos" displayname= "Subversion" depend= Tcpip start= auto

sc - is command to create service in windows
svnserve- is service name
binpath : path to executiable file
--service - is to start service at startup
c:\svnrepos: folder which you created in C-drive well act as SVN Repository
displayname : service name in services console
Start = auto - automatic start at system boot
depend= Tcpip - works on ip Check out your repository onto your local machine: Back on your local machine, go to where you keep your nerd stuff.  In my case it's in ~/workspace.  Then use the svn co command to check out a copy of your project.


Test the repo-browser: (need to install TortoiseSVN)
right click on Desktop -> tortoiseSVN -> Repo-browser
svn://localhost -> test if it works internally
svn://192.168.20.204 -> (Example for external ip) test if it works remotely


   


















   Successfully Done..!

Suggestions are always welcome..!  Without signing also you can send your comments.

No comments: