1. Download and install
Http://subversion.tigris.org/servlets/ProjectDocumentList? Folderid = 91
By default.
2. Create a repository
1. Create a directory, for example, C: \ svnsrc \ CSHARP.
2. Open the command window and type: svnadmin create -- FS-type fsfs c: \ svnsrc \ CSHARP
3. Configure Repository
Go to the repository directory. In this article, the directory is c: \ svnsrc \ CSHARP. You will see the conf directory and enter the directory. You will see the svnserve. conf and passwd files.
Modify the two files as follows:
Svnserve. conf
### This file controls the configuration of the svnserve daemon, if you
### Use it to allow access to this repository. (If you only allow
### Access through http: and/or file: URLs, then this file is
### Irrelevant .)
### Visit http://subversion.tigris.org/for more information.
[General]
### These options control access to the repository for Unauthenticated
### And authenticated users. Valid values are "write", "read ",
### And "NONE". The sample settings below are the defaults.
Anon-access = read
Auth-access = write
### The password-DB option controls the location of the password-DB = passwd
### Database file. Unless you specify a path starting with /,
### The file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
Password-DB = passwd
### The authz-DB option controls the location of the authorization
### Rules for path-Based Access Control. Unless you specify a path
### Starting with A/, the file's location is relative to the conf
### Directory. If you don't specify an authz-DB, no path-Based Access
### Control is done.
### Uncomment the line below to use the default authorization file.
# Authz-DB = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, They shocould
### Have the same password database, and vice versa. The default realm
### Is repository's UUID.
# Realm = my first Repository
Passwd### This file is an example password file for svnserve.
### Its format is similar to that of svnserve. conf. As shown in
### Example below it contains one section labeled [users].
### The name and password for each user follow, one account per line.
[Users]
# Harry = harryssecret
# Sally = sallyssecret
User = Password
4. Start Subversion
Open the command window and type: svnserve-d-r c: \ svnsrc
The default port is 3690.ProgramFor temporary use, you can use the option svnserve-d -- listen-Port port
The URL format is SVN: // ip address // repository name. In this article, SVN: // 127.0.0.1/CSHARP
5. Install subversion as a Windows Service
SC create svnservice binpath = "\" C: \ Program Files \ subversion \ bin \ svnserve.exe \ "-- service-R c: \ svnsrc" displayname = svnservice depend = TCPIP start = auto
Conclusion: in this way, the Subversion service has been set up in windows.