Common ways to use SVN in MyEclipse

Source: Internet
Author: User

First, Import the project (Checkout). Checked out from the SVN repository.

1. Click "File-import"on the toolbar to enter

(If your dialog box does not have an SVN entry, it may be because you did not install the SVN plugin, please install after the completion of this blog post)

2. Create the repository location and click Next to enter:

Enter the IP address of your SVN server, including the full path such as port number and folder

Fill in the server IP, click Next to enter

Click Next to enter

Enter your username/password to import successfully.

Select Import Project

When the import is complete, the interface appears as shown


II. Updates (update)

(1) Why update?

The purpose of using SVN is to share an up-to-date directory, if you do not update the direct submission, this period of time may be updated by others have submitted, you do not update or the old version, the direct submission will be updated to cover the others, so you have to submit the best update, update to the latest version of the check before submitting.

(2) How to update? How do you ensure that your project and the code on the server are consistent?

Select the item, and then synchronize. "Team->synchronize with Repository"

(3) Popup page, confirm whether jump view.

(4) If there is an update, then these updated files will appear on the top.

Otherwise it will appear as:

Select the icon button like, so that only the updated file is displayed in the view.

Generally by "Team->update"

3. Lock (Lock the file to be modified to prevent file conflicts)

(1) Why to lock the mechanism?

have been accustomed to fighting alone, so when using SVN version control, there is no concept of co-development, nature will not use the SVN lock mechanism.

For ease of operation, when a project member modifies a file, it does not need to lock the file. But the precondition is that each individual is responsible for a separate module.

However, now work in the company is not the same, several people do the same project, the code is likely to be modified by people.

Lock the file you are about to change so that no one else can submit the file you have locked, then the file will not conflict.

Select the file, and then pass "Team->lock".

4. Submission (after the project has been modified)

1) If you modify the file locally, the icon for the file will be "*"

2) If you add a new file locally, the icon for the file will be hit "? ";

3) .....

When you want to submit the item you changed, then on the file that needs to be submitted, click the right mouse button, press the path shown, click "Team->commit",

< note, not only can you commit on the file you changed, you can also submit it on the upper node of the file you changed >

Select the files that need to be submitted, generally some profiles do not need to be submitted.

Fill in some memo information to manage your version information

Or:


5. Unlocking

When you have finished working on the file, release the file, and the file will be unlocked.

On the file that needs to be unlocked, click the right mouse button, press the path shown, click "Unlock",

6. View historical changes

If you want to observe the modification history of a file, you can click on the file, right mouse button, follow the path shown, click "Localhistory"to view the file version information.

The file's historical modification information appears, and you can find the information you need based on the file submission time provided by the system.

7. File restore

When you need to restore your changes, click the right mouse button, according to the path shown, click "Localhistory"to view the file version information comparison.

Double-click Time to see a history of responses

8. File Coverage

1. What are file conflicts

Conflicts occur when two or more developers make changes to a few lines of the same file.

Scene:

A and B update the project at the same time, and then

A after modifying the JSP file

1) Update

2) Submit

b also modifies this JSP file

Then b after a successful submission, the update will have an effect that is the conflict effect.

2. File Conflict resolution

1) Delete One of them, as shown in.



2) Submit after conflict resolution.

3) Submit complete as shown in.

3. How to avoid file conflicts

Be sure to lock the file before you modify it!

Summary:

Common ways to use SVN in MyEclipse

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.