How to build a Subversion server

Source: Internet
Author: User
Tags subversion client tortoisesvn

1. Prepare Software

Subversion server: http://subversion.apache.org/packages.html (this article uses collabnet
Windows Version)

Subversion client: http://tortoisesvn.tigris.org/tortoisesvn is a set of tools to expand Windows Shell, can be seen as a Windows Resource Manager plug-in, after installation windows can recognize
The working directory of the subversion.



2. server and client Installation

Windows InstallationProgramThere is nothing to say. Note that a repository must be specified during Server Installation, as if this path cannot contain spaces.



3. Create a version Library (repository)

To run the Subversion server, you must first create a version Library (repository), which can be seen as a database for storing data on the server. After the Subversion server is installed, you can run it directly, for example: svnadmincreate E: /Repository creates a version Library Under directory e:/Repository. You can also use tortoisesvn to perform this step in a graphical manner: Right-click the directory e:/Repository and choose tortoisesvn> createrepositoryhere... ", then you can select the version library mode. Here you can use the default mode, and then create a series of directories and files.



4. Configure users and permissions

Under repository

Conf directory, modify
Svnserve. conf:
# [General]
# Password-DB = passwd
Changed:
[General]
Password-
DB = passwd

Modify the passwd file in the same directory and remove the following three lines of comment:
# [Users]
# Harry = harryssecret
# Sally = sallyssecret
Most
And then changed:
[Users]
Harry = harryssecret
Sally = sallyssecret

You can also add any account in the form above.

The permission settings for these accounts are set in the authz file in the same directory.



5. RunSubversion server


Run svnserve-d-r e:/repository in any directory and our server program is started. Do not close the command line window. Close the window will also stop svnserve.



Vi. Initialization Import

Right-click the project root directory we want to import and choose tortoisesvn> Import... after urlofrepository input "SVN: // localhost/" OK, the directory remains unchanged. If no error is reported, all the data has been imported to the version library we just defined. Note that this step can be performed on another host with tortoisesvn installed. For example, if the IP address of the host running svnserve is 133.96.121.22, the content entered in the URL section is "SVN: // 133.96.121.22 /". At this point, the entire setup process is complete, and the initial import is completed. In this way, check in/out is the main operation in the future.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.