This section describes the installation and configuration of Windows Svnserver, mainly including installation, configuration, testing, building and import, and so on, the following is a specific introduction, I hope to help you learn.
1. Configure the Environment
Windows2003serverwithsp1
ApacheHTTPServerv2.0.55
Subversionv1.4.2
2. Installation Apachehttpserver
Modify the installation directory to C:\ApacheGroup
The default is to install to the C:\ProgramFiles\ApacheGroup directory
The directory structure after installation is as follows:
C:\ApacheGroup\Apache2\bin\
C:\ApacheGroup\Apache2\conf\ ...
3. Installation Subversion
Here, use the ZIP package, extract to C disk, and add C:\svn-win32-1.4.2\bin to the environment variable path.
The unpacked directory structure is as follows:
C:\svn-win32-1.4.2\bin\
C:\svn-win32-1.4.2\iconv\ ...
L COPY the mod_dav_svn.so and mod_authz_svn.so in the C:\svn-win32-1.4.2\bin directory to the C:\ApacheGroup\Apache2\modules directory.
L Copy all DLL files in the C:\svn-win32-1.4.2\bin directory to the C:\ApacheGroup\Apache2\bin directory. Note It is best to stop Apache when copying DLL files.
L Open the C:\ApacheGroup\Apache2\conf\httpd.conf file with a text editor to find the following two lines
#LoadModuledav_modulemodules/mod_dav.so
#LoadModuledav_fs_modulemodules/mod_dav_fs.so
Remove the front #, and then add the following two lines to the back of all LoadModule
Loadmoduledav_svn_modulemodules/mod_dav_svn.so
Loadmoduleauthz_svn_modulemodules/mod_authz_svn.so
And then back up Apache.
4. Building a library
Svnserver Setup and configuration are complete and you will need to build a library later. Suppose that the root of all libraries is F:\SVN, and you want to build a library called Testrepos, open a DOS window, go to the F:\SVN directory, and then enter Svnadmincreatef:\svn\testrepos
After the command is executed, some directories and files are generated in the F:\svn\testrepos directory. Then add the following at the end of the C:\ApacheGroup\Apache2\conf\httpd.conf file, and restart Apache
<Location/svn>
Davsvn
Svnparentpathf:\svn
</Location>
5. Test
Open the DOS window and go to a temporary directory F:\temp
The "Checkedoutrevision0" is displayed when the Svncohttp://localhost/svn/testrepos is executed correctly. of information.
6. Import
Svnserver installation and configuration needs to be imported, such as a directory under a temporary folder (such as C:\temp)
Trunk
Branches
Tags
Entering the C:\temp directory under the DOS command line, and then performing svnimport.http://localhost/svn/testrepos-m "initialrepository" execution success will prompt a revised version of 1 after the submission.
7. With regard to the establishment of the library
It is recommended that you create a library for each project, for example:
F:\svn\project1
F:\svn\project2
and then create the following structure for each library (the directory structure proposed by the official Subversion manual)
F:\svn\ Project1\trunk This directory is used to store the project code that is being developed
F:\svn\project1\branches This directory to hold the version branch in development
F:\svn\project1\ Tags this directory is used to store the branch that no longer changes. Svnserver installation and configuration here is the complete explanation.