See the title, you reader should know that this build control system should be used in conjunction with Visual Studio, and the version control system that is the best IDE Visual Studio under the Windows platform is visual Source Safe, But the subversion performance was so good that it seemed to be beyond CVS, and, of course, only VSS was even more insignificant. (Oh, here, if not your taste, please skip, directly to see the installation configuration instructions below)
The software and the version used:
SVN V1.6.1 http://subversion.tigris.org/
TortoiseSVN V1.6.1 Http://tortoisesvn.net/downloads
Apache V2.2.11 http://httpd.apache.org/download.cgi
ANKHSVN V2.0.6347.433 http://ankhsvn.open.collab.net/
Visual Studio 2008 ...
Installation setup steps:
First, set up SVN
First, you compress svn into any directory, such as: D:\SVN, to add d:\svn and D:\svn\bin to the system path in the environment variable. "Right-click My Computer-> Properties-> Advanced-> environment variable-> system variable, find path to paste";d: \svn;d:\svn\bin "(without quotes) to the end of path. So detailed?! If still do not have, the following don't look, hehe "
Second, installation settings Apache
Double-click the installation to the next step.
Copy mod_dav_svn.so and mod_authz_svn.so two files from the D:\svn\bin directory to modules under the Apache installation directory.
Open the httpd.conf configuration file in the Conf folder under the Apache installation directory and locate the following two lines:
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_module modules/mod_dav.so
Remove the front # and add two more lines:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
At the end of the file, add the following information:
#SVN virtual path
<Location /svn>
DAV svn
SVNListParentPath on
SVNParentPath f:/SVNRepository
# apache auth begin
AuthType Basic
AuthName "Subversion Repositories! Login Needed!"
AuthUserFile f:\SVNRepository\passwd
Require valid-user
# apache auth end
# SVN auth begin
AuthzSVNAccessFile f:\SVNRepository\svn_authz
# SVN auth end
</Location>
The above information is for us to set up a virtual directory SVN (there may be http://localhost/svn, the use of their own time to replace localhost with the corresponding domain name and port number), use is for us to store code, that is, our code base. The virtual directory to correspond to the actual physical folder, is f:/svnrepository, the folder of two files passwd and Authz, see the name should know passwd Save the username and password, Authz save access control information, Users in passwd have access to which directories are set up here. As for passwd how to generate, fill in the basics---http://httpd.apache.org/docs/2.0/howto/auth.html. Authz is set up in the SVN directory to access the subdirectories, we can in the SVN directory to create a number of directories to place different code, and then use TORTOISESVN to create a code base. If we create a new directory in SVN called Myrepository, open the directory, right click on the shortcut menu, TORTOISESVN under the Create Repository here can be created code library, yourself or others can http://your domain name/ Svn/myrepository visited it.
The Authz file is a text file with the following form:
[groups]
developers=username1,username2
[myRepository:/]
@developers=rw
In this example, both UserName1 and username2 users belong to the developers group, which has read-write access to the Myrepository directory, R-Read, W-write.
Here the version control server side is configured to complete.
Client Installation
Install ANKHSVN, this support for vs2003,2005,2008 has a different version, choose the version that matches your vs version, install it. When you're done, turn on vs to find the Subversion project in the menu "files" and in the project manager, right click on the project or file in the project Manager, and the shortcut menu appears.
Prior to use, it is best to install the TORTOISESVN on the development machine, so as to avoid any problems.