SVN video Tutorial-development team SVN version Controller video graphics tutorial

Source: Internet
Author: User
Tags command line copy log svn version win32 root directory tortoisesvn
Tutorials | video | Video Tutorials | team |svn| version control

How to quickly set up a subversion server, and use it in the project, this is the most concern, compared to CVS, Subversion has more choice, and easier, a few commands can build a server environment, you can use, there are animated tutorials .
This article is the fastest use of Subversion tutorial, in the shortest possible time to help you build a set of available server environment, only a few adjustments can be applied to the actual project.
This tutorial is divided into the following sections, in order to illustrate the simple, tutorial is used in Windows under the way to facilitate the use of limited resources projects. In a UNIX environment, the command execution is not much different than the way it is installed.

    • Software downloads
    • Server and Client Installation
    • Build a version library (Repository)
    • Configuring Users and Permissions
    • Running a standalone server
    • Initialize Import
    • Basic client Operations

1, software download

Download the Subversion server program.

Download the binary installation files to the official web site and come to the binary package download section, find Windows NT, XP and 2003, and then choose Apache 2.0 or Apache 2.2 so we can see a lot of downloads, Setup-subversion-1.5.3.msi can now be downloaded.

Download Subversion's Windows client tortoisesvn.

TortoiseSVN is a set of tools to extend the Windows shell as a plug-in for Windows Explorer, and Windows will be able to identify the working directory of Subversion after installation.
The official website is TORTOISESVN, downloaded in the same way as the previous SVN server, on the download page we can choose to download the version, The currently highest stable version of the installation file is Tortoisesvn-1.5.5.14361-win32-svn-1.5.4.msi.

2, Server and client Installation

Server installation, directly run Setup-subversion-1.5.3.msi, as prompted to install it, so we have a set of servers can run the environment.

Install TORTOISESVN, Also directly run Tortoisesvn-1.5.5.14361-win32-svn-1.5.4.msi follow the prompts to install, but after the final will be prompted to reboot, in fact, the restart is only to make SVN working copy in Windows Special style takes effect, with all the actual functions, here for immediate See a good effect, or reboot the machine.

3, build version library (Repository)

Running a subversion server requires first establishing a version library (Repository), which can be viewed as a database of data stored on the server, and can be run directly after the Subversion server is installed, such as:

Svnadmin Create E:\svndemo\repository

A version library is created under the directory E:\svndemo\repository.

We can also use TORTOISESVN graphically to complete this step:
Under the directory E:\svndemo\repository "right key->tortoisesvn->create Repository here ...", then you can select the version library mode, which is used by default, and then create a series of directories and files.


4, configure Users and permissions

Come to E:\svndemo\repository\conf directory, modify svnserve.conf:
# [General]
# password-db = passwd
To
[General]
Password-db = passwd

Then modify the passwd file in the same directory and remove the comments from the following three lines:
# [Users]
# Harry = Harryssecret
# sally = Sallyssecret
Finally becomes:
[Users]
Harry = Harryssecret
Sally = Sallyssecret

In the passwd file, the character before "=" is the user name, followed by the password. Also note that the comment "#" in front of "[Users]" must be deleted.

5, running a standalone server

Run in any directory:
Svnserve-d-R E:\svndemo\repository Our server program has been started. Be careful not to close the Command line window and close the window to stop the Svnserve.

6, initialize the import

Come to the root directory of the project we want to import, in this example E:\svndemo\initproject, there is a Readme.txt file in the directory:


Right Key->tortoisesvn->import ...
Enter "Svn://localhost/trunk" in URL of repository
Enter your log information in the import message

After the completion of the directory without any changes, if there is no error, the data has been all imported into the version of the library we just defined.

It should be noted that this step can be done entirely on another host with TortoiseSVN installed. For example, the IP of the host running Svnserve is 133.96.121.22, then the content of the URL part is "Svn://133.96.121.22/trunk".

7, Basic client operation

To remove a version library to a working copy:

Come to any empty directory, in this case is E:\SVNDEMO\WC1, run the right button->checkout, enter the Svn://localhost/trunk in the URL of repository, so we get a copy of the work.


Make changes in the working copy and submit:

Open Readme.txt, make changes, and then right-click->commit ... so we submit the changes to the repository and we can run them.


To see the changes made:

Readme.txt Right->tortoisesvn->show Log so we can see all of our submissions on this file. Right-->compare with working copy on version 1, we can compare the difference between a working copy file and version 1.

Finally, all the content has been recorded as an animated file, you can refer to.

What do you have in this tutorial, you can discuss here.

Updated December 11, 2008



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.