28 April 2010

Setting Subversion on Windows 7


Windows SVN configuration:

1. Binary file of svnserve is locate at- C:\Program Files (x86)\Subversion\bin\svnserve.exe

3. To create a repository use:
> svnadmin create F:\tests\winrepo\repo1
Here repo1 is the name of the repository to create

Import repository in to svn -
> svn import F:\tests\testproject file:///F:/tests/winrepo/repo1 -m "Log message"

here testproject will be imported in to repo1 repository

4. Configuring svn to run on svnserv: (svn://)
Change configuration file in repo1\conf\ folder.

* configure svnserve.conf:
uncomment and configure the following params
anon-access = none
password-db = passwd

* add passwords in passwd file e.g.
winsvn = winsvn

* Start svnserve daemon

5. Run svnserve daemon:

> sc create svn binpath= "C:\Program Files (x86)\Subversion\bin\svnserve.exe
--service -r F:\tests\winrepo"
displayname= "Subversion windows server"
depend= Tcpip start= auto

If you get error like "Access denied" run the cmd using admnistrative privilages


6. To checkout repository use:
> snv checkout svn://host/repo1

it will ask for user name and password (username and password is specified in repo1/conf/passwd file)

No comments:

Post a Comment