Turn Eclipse to create Branch/merge/switch usage under SVN

Source: Internet
Author: User

Recent projects require that you create a branch on the SVN trunk, use a branch to make bug changes to the program, and develop new features on the trunk. The bugs on the branch are modified and can be merged onto the trunk after publishing. The project program can be switched between the trunk and the branch to achieve simultaneous maintenance of the backbone and the branch.

1. Create a branch

Creating a branch is actually a copy of the program to the specified branch directory, as shown in:



Right click on the project name, pop-up menu, select "Team", then "Branch/tag", pop up the following page:



The copy to URL in will fill in the path address where the new branch is created, followed by a copy of the program to that directory, forming a new branch. Click "Next":



Select the current version and click "Next"



If you tick the following switch working the program project for copy to new branch/tag,eclipse will automatically switch to the branch. We do not choose here, we will switch ourselves later.

This creates a 1.0 branch.

2. Merging

You can merge from the trunk to the branch, or you can merge from the branch to the trunk, optionally selecting the appropriate options, such as:



The options in:

1) Merge from trunk to branch

2) Merge from branch to trunk

3) Merge the changes on the trunk to the branch

4) Merge 2 branches to trunk

5) Manually specify modifications that do not need to be merged from the trunk to the branch

6) manually specify the modifications to merge from the trunk to the branch



The display does not have any modifications, so no merging is necessary.

3. Toggle

Right-click on the project name and select "Team" –> "switch to another branch/tag/revision".



Select the destination address you want to switch to, click OK.

In this way, you can switch between the trunk and several branches in the project to implement the modified commit operation for the different versions/branches of the program.

Turn Eclipse to create Branch/merge/switch usage under SVN

Related Article

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.