WIN8 Build SVN (server and client)
2012-05-08 15:38:47| Category: Default Categories | Report | Font size Subscription
Environment: Win8, VS11, AnkhSVN 2.3.10838 released, TortoiseSVN 1.7.6-64bit
First, the preparatory work
1. Subversion Server Program
Download the latest version on the official website first, http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100&expandFolder=8100 &folderid=91
2. TORTOISESVN client program
Official website: http://tortoisesvn.net/downloads. It is a client-side program used to communicate with the Subvers server. Subversion comes with a client program Svn.exe, but tortoisesvn better and improves efficiency.
Second, install the server and the client
Third, build the repository
Running the Subversion server requires first establishing a repository, which can be seen as a place where data is centrally stored and managed on the server. Steps:
First, create the C:\svn empty folder as the root directory of all repository;
Next, go to the command line and switch to the Subversion bin directory. Input:svnadmin Create C:\SVN\REPOS1
Four, running the server
In just the command window type:svnserve.exe--daemon.
Svnserve will wait for the request on port 3690 ,the daemon (two dash) option tells Svnserve to run as daemon so that it does not exit until it is manually terminated. Be careful not to close the command-line window, and closing the window will stop Svnserve.
To verify that Svnserve is working correctly, use TORTOISESVN-repo-browser to view the repository. In the Popup URL dialog box, type:svn://localhost/svn/repos1
You can also use the--root option to set the root location to restrict the server's access to the directory, thereby increasing security and saving time for entering the Svnserve URL:
Svnserve.exe--daemon--root drive:\path\to\repository
Svnserve will run as: Svnserve.exe--daemon--root E:\SVN
Then the version library browser URL in TortoiseSVN is reduced to: SVN://LOCALHOST/REPOS1
V. Configuring Users and Permissions
Open the C:\svn\repos1\conf directory with a text editor and modify the svnserve.conf:
Will
# password-db = passwd
Switch
Password-db = passwd Remove the previous # comment, note that there must be no spaces ahead.
Then modify the passwd file to add an account:
[Users]
# Harry = Harryssecret
# sally = Sallyssecret
Add Account:
[Users]
#harry = Harryssecret
#sally = Sallyssecret
Test = Test
copy from http://www.cnblogs.com/ricksun/articles/1564905.html