SVN Quick Start Tutorial

Source: Internet
Author: User
Tags svn win32 tortoisesvn

As a result of zip and RAR parsing, the Mucommander tool was found to run the Discovery report on its JAR package import Project: type conversion error, Org.apache.commons.logging.impl.Log4JLogger cannot be Cast to
Org.apache.commons.logging.impl.Jdk14Logger

It is estimated that a class has been written dead type converted to Jdk14logger, and my project is using Log4jlogger, so it cannot be converted. So I have to put all the source code check out and modify the edit package.

Turn from: http://www.subversion.org.cn/?viewnews-1

How to quickly build a subversion server, and use it in the project, this is the most concerned about the problem, compared with CVS, Subversion has more choice, and easier, a few commands can build a server environment, you can use it, 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 download server and client Setup build version library (Repository) Configure users and Permissions run Standalone server initialize Import basic client Action 1, software download 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:

(1), svnadmin create E:/svndemo/repository

A version library is created under the directory e:/svndemo/repository.

(2), we can also use TortoiseSVN graphical 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.

Note: When you do not see clearly still think (2) is followed (1), and finally found the newspaper: "Subversion reported an error while creating a repository!
Make sure the ' folder is empty ' and not write protected.
Finally changed another empty folder directly (2) incredibly and (1) generate the same directory and file to know two methods are to achieve the same goal.
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.

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.