How to quickly create a Subversion server

Source: Internet
Author: User
Tags tortoisesvn

1. Software Download

SVN Server

Official: http://subversion.tigris.org/

This document uses svn-win32-1.6.1.zip as an example to install

Download the subversion of the Windows client tortoisesvn. (If you are used to the CMD command method, you can also choose not to download it)

Official Website: http://tortoisesvn.net/saier ID Lisboa

2. server and client Installation

Install the server and decompress the svn-win32-1.6.1.zip file to any location.

Install tortoisesvn as instructed. (If you are used to the CMD command method, you can skip the installation)

3. Create a version Library (repository)

Method 1: Command

Run the following command to import the svn-win32-1.6.1.zip file to the decompressed bin Folder:

Svnadmin create d: \ svnroot

A version library is created under Directory D: \ svnroot.

Method 2: Use tortoisesvn to perform this step graphically.

Right-click the Directory D: \ svnroot and choose tortoisesvn> Create repository here to create D: \ svnroot as a version library.

4. Configure users and permissions

Go to the D: \ svnroot \ conf directory and modify svnserve. conf:

# [General]

# Password-DB = passwd

Change to (remove the previous #): Freight

[General]

Password-DB = passwd

Modify the passwd file in the same directory and remove the comment:

# [Users]

Finally changed:

[Users]

Then create a user in the form of username = Password

5. Run the independent server

Install the service and run it in any directory:

SC create subversion_service binpath =
"C: \ svn-win32-1.6.1 \ bin \ svnserve.exe -- service-r d: \ svnroot"
Displayname = "Subversion repository" depend = TCPIP

Here, subversion_service is the custom server name; C: \ svn-win32-1.6.1is the svn-win32-1.6.1.zip decompressed directory; D: \ svnroot is the version library folder, which can be modified as needed

Then, right-click my computer and choose "manage"> "service" to find the Subversion repository and set it to "automatic"

(Appendix: to delete a service, use SC Delete subversion_service)

6. initialize the Import

Method 1: Command

Example: C: \ svn-win32-1.6.1 \ bin> SVN import D: \ AAA \ workflow file: // D:/svnroot \ workflow-M "Initial import"

Where D: \ AAA \ workflow is the file or folder to be imported; file: // D:/svnroot \ workflow is the previous version library location

Method 2: Use tortoisesvn

For a folder, right-click the folder and choose tortoisesvn> Import... URL of repository and enter "SVN: // localhost /"

Then write the import information so that you can view and operate OK later.

If it is a file: you can right-click any location-> tortoisesvn-> repo-Brower. I believe you will

The preceding operations 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 /".

7. Basic client operations

Extract the version library to a working copy:

Go to any empty directory, right-click and choose checkout, and enter SVN: // localhost/in the URL of repository, so that we can get a copy of work.

Make changes in the work copy and submit:

Right-click the modification and choose commit... to submit the modification to the version library.

View the modifications:

Right-click the file-> tortoisesvn-> show log, so that we can see all the submissions to this file. Right-click on version 1 and choose compare with working copy. We can compare the differences between the working copy file and Version 1.

8. Download and install subclipse (eclipse client plug-in)

See

Http://subclipse.tigris.org/servlets/ProjectProcess? Pageid = p4wyua

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.