Build on SVN source server (detailed tutorial analysis) _c language

Source: Internet
Author: User
Tags svn svn client server port tortoisesvn
First, the introduction
I have tried to search on the internet for an SVN source code server to build the Chinese technical article, unfortunately, found, either incomplete, or is not helpful to the author of the article, TortoiseSVN's help document is powerful, but because it is English, is not very suitable to use as a starter After all, TortoiseSVN is a client, and server-side configuration is also important.
A year ago, the author just graduated, first into the company, in the development, because no software code version management, resulting in the result is
• Software one version a day
Bug is growing and hiding deep.
• Code cannot be traced backwards
• Bugs that were corrected a few months ago are back up in a few months
Because recently the company decided to set up SVN source code server, to solve the above problems, so the author after a period of exploration and use, then have this article.

Ii. Learning the prerequisites of this article
If you are a reader of the following circumstances, then this article can play a great help to you:
• Basic knowledge of software development
• Understanding the Client/server model
• Being plagued by an increasingly updated version of the software code
This article aims to instruct readers how to use the existing software tools for software code version management, if you are interested in software versioning and management, maintenance and backup, you can read this article to obtain certain knowledge.

Third, install SVN server-side software
First of all, you must download two packages: VISUALSVN server and TORTOISESVN, both are open source software, as to where to download, Baidu or Google, as far as possible to use the latest version is good, I use the following version:

Server side: Visualsvn-server-2.5.5.msi
Client: Tortoisesvn-1.7.5.22551-win32-svn-1.7.3.msi

Double-click the following icon to open the installation package:

Click "Next"

Tick "I Accept ..." and click "Next"

Select the first "Install VISUALSVN Server (Visual SVN server)" and "Management Console"

Location is your installation directory, c disk or D disk can be, repositories is your source code warehouse, which is your SVN to help you manage the location of the code, where I choose to place in the D-Packing directory, the "Use Secure connection" check box to remove the hook, You can then fill in the server port with a 8080 (fill out a different port number, but make sure that the port number is not occupied), and the reason for not using a secure connection here is that it slows down traffic (PS: The secure connection that was used at the time of the company configuration. It takes more than 15 seconds to checkout each time, and then click Next:

Click "Install"

Wait......

finish!

When you click Finish, the VisualSVN Server starts, and you can see that its status is:

VISUALSVN Server is running

Server URL is http://motor-109133.hanslaser.com:8080/svn/

At this point, server-side software installation completed!

Iv. SVN Server Configuration Project

Right-click "Repositories" and select "Create New Repository ..."

In the text box under "Repository Name", fill in "Testsvn" (as a test), tick the CREATE default structure (trunk,branches,tags) option, click OK

You can see under the repositories tree, there is a TESTSVN library with three folders in this TESTSVN library:

Branches (branch code that modifies special features or new features, which can be merged with the backbone)Tags (mark, set milestone version)Trunk (trunk, the code project that is currently being edited)

Start new User (User group Management please study for yourself), right click Users, select Create User ...

Fill in the account password in the Create New User dialog box, as shown in the figure:

You can see a user under the Users folder:

Remember to modify the properties of the repositories warehouse because its default property is everyone read/write, meaning anyone can read and write to the contents of the library, now we want to modify it to everyone No Access, and then add the user ourselves , give the user the ability to read or write, right click on "Repositories", select "Properties":

Select Everyone, and then check No Access:

Now start adding a user to TESTSVN, which is the account you just added: Zhengshuo, right click on "Testsvn" and select "Properties ...":

Click "Add ...", select Zhengshuo under Users, click OK

This allows the user Zhengshuo to be added to the TESTSVN project (that is, only Zhengshuo has the right to read and write to TESTSVN):

v. Install SVN client software

Double-click the following installation package:

Click "Next"

Select "I Accept ..." and click "Next"

Select the installation directory and click Next:

Start Install:

Wait ...

Installation Complete!

VI. Check out engineering code from SVN server

Create a folder in either location TESTSVN, such as D disk, right-click the folder, and select "SVN Checkout ..."

Fill out "URL of Repository", the format is http://your computer's IP address: 8080/svn/testsvn, port number is set up before the 8080,IP address of your current computer to fill out the IP address, and then click OK:

SVN will prompt for an account password to authenticate, because Zhengshuo this account has been added to the server, so you can use this account to log in:

After the validation is successful, you will be prompted to "Checkout finished! ”:

Vii. Check in the project code to the SVN server

The first checkout obtains the directory structure in the current project TESTSVN, namely Branches,tags and trunk:

Our code is placed in the trunk (trunk) folder with the following code:

Right-click the Testsvn folder and select "SVN Commit ..."

Fill out the upload reason message, click OK

Prompt "Commit finished! ”

Eight, PostScript
The content of this article is simpler, but it gives beginners a best entry point, so that beginners can in the shortest possible time, the SVN source code server construction and preliminary use has a comprehensive understanding.

The SVN source server through the building, but also let me understand the software code version management of the importance of the so-called gentleman good leave in the matter also, we as a qualified software engineers, to be good at using all the resources around them to optimize our working environment, improve work efficiency, Perfect software for the company to write fewer bugs for itself.

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.