How to Use Subversion

Source: Internet
Author: User
Tags version control system tortoisesvn
Subversion is a version control system that has recently become popular. The author is the primary author of the CVS system. I first saw the introduction Article on PHP & more Vol.4, but I was not very comfortable with it. Recently, I tried to configure a simple server type. Although the game is far from powerful, I 'd like to share my experience with you.
If you have the conditions, you can take a look at the introduction Article on PHP & more Vol.4. After all, most of the requirements mentioned above are combined with Apache applications, and the description is much more detailed than me. Or a friend with good English can query the help manual and find the most appropriate and direct answer. The entire system is divided:
Subversion, from http://subversion.tigris.org/download, is the software that implements the service system.
Tortoisesvn, from the http://tortoisesvn.tigris.org/download, is a very good SVN working program, combined with the file manager, It is very convenient to use.
Svnservice.exe, from http://dark.clansoft.dk /~ MBN/svnservice/download is an entry program designed for subversion mounting as a Win32 service.
Install the subversion and use svnadmin create to create a work area, for example, svnadmin create d:/subversion/proj1. Try to use the File Manager to view the database structure required by version control.
As mentioned in the introduction, svnserve-D-r d:/subversion can be used to create an SVN server instance with D:/subversion as the working root directory. However, this example is tomcat, which must be hung in the command line window.
Then I tried to use SC .exe provided by Microsoft to upgrade svnserve.exe to a service, and found that it could not be linked to a service in this way. We can only use svnservice.exe. The svnservice.exe command that achieves the same effect is svnservice-install-D-r d:/subversion. Finally, change svnservice to automatic start in service management.
At this time, a lightweight SVN server that can be normally used has been successfully built. The SVN program can be used to achieve most of the requirements. If you are in trouble, you can use tortoisesvn to perform the same operations on the GUI.
However, the svn server has no permission mechanism so far. Open the D:/subversion/proj1/CONF/svnserve. conf file. Remove the comments before the start line to form the following valid structure:
[General]
Anon-access = none
Auth-access = write
Password-DB = passwd
Realm = input your password ^_^
To save svnserve. conf, a non-authenticated user has no access permission, and the svn server that verifies that the user has the read and write permissions is basically formed. The last step is to create a suitable passwd password management file under the conf directory.
My own experience here is that what I mentioned in the Introduction Article is wrong... I tried to use htpasswd.exe to create a password table. As a result, the svn server told me that it did not know this thing -_-!. I changed the content of the passwd file to the following:
[Users]
Snail kedevil = 123
Root = 234
In this way, you can log on normally.
So far, all preparations have been completed. ^_^ import the development project content SVN, and start the project!

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.