Distributed code management tool-specific process of tortoisehg Configuration

Source: Internet
Author: User
Tags mercurial

Tortoisehg is the GUI client of the Distributed Source code management tool mercurial.

1. About mercurial and some resources

Mercurial is widely used as the three mainstream distributed source code management tools. For example, both googlecode.com and codeplex.com support mercurial as source code management tools.

Home page: http://mercurial.selenic.com/more help: http://hgbook.red-bean.com/ and tortoisehg. CHM

Super good PPT: http://www.slideshare.net/tednaleid/distributed-version-control-dvcs-with-mercurial

The other two slides teach you how to use them:

A Guide to revision control with tortoisehg (individual use)

A Guide to revision control with tortoisehg (team use)

 

2. The following content refer to the self-http://blog.csdn.net/hongshan50/article/details/6867883, some join their own practice understanding.

1. Server Creation

1. First installTortoisehgSoftware. (Server and client must be installed)Because this is distributed file management, the software is installed with the both client and server.

2. Create a folder as a File Repository. Right-click Tortoise and choose create repository here.

3. The. Hg folder appears after the creation. Then you can test the engineering documents you need. For example:

 

At the beginning, there was no green check mark.

4. Right-click tortoise-> edit ignore filter. Write ignored files that are not downloaded from the client. Take me as an example:

Write them in sequence.

5. Right-click commit (note writing comments). For example, if you write init for the first time, this is free.

6. In the repository directory, right-click Hg-> workbench (this step has already opened the server by default). Under the repository menu, click Web server, stop, and then click Configure. The specific configuration is divided into two parts:

Adminitrator's global settings and XXX repository settings. (Two pictures are shown below)

 

 

On the server side, I only configure these parameters. You can set the name or other parameters on your own. Note that SSL encrypted push is set to false. Allow push me settings *. Because I am in the lab, I allow anyone to push.

Build two clients

1. install the software first.

2. Create a folder to store project files.

3. Right-click the folder and selectTortoisehg-> Clone. Parameter

 

Note that the IP address of the server is written before the clone source location and the port number is written after the source location.

The clone operation can be performed on the same machine. The created repository directory is displayed. Click the following menu to clone it to the local directory.Code. This code is a complete repository and can be pushed and pull to each other.

4. After cloning, a folder with a green arrow will appear.

5. Right-click hgworkbench and configure the server. The configuration is the same as that on the server. Both parts must be configured.

Next, let's talk about client operations.CompositionMethod:

1. Submit the local modification content to the local environment. Open hgworkbench.

2. drag in the latest server content.

3. Merge merge. (implemented by right-clicking)

4. push to the remote server.

 

In the figure, the second and fourth are respectively tug and push.

To be continued... (For conflicting issues encountered during development, summarize them slowly)

 

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.