Suggestions for using CVS in eclipse

Source: Internet
Author: User

1
In eclipse
Same as CVS
Server
Before the server is synchronized, refresh the server first. Otherwise
Files edited outside, eclipse
Without refreshing
Synchronization error occurs.
Set to automatic refresh. Operation Method: window-> preferences-> workbench
,
Select refresh workspace automatically
. Even so, problems may still occur because eclipse
Brush
There may be a certain delay in the new version, so when an error is reported, manually refresh the page and then synchronize.

2
Before leaving the company, commit
Institute
There are files, update after work
All files, and build
To correct the version submitted yesterday.
.

3
Before modifying the file, update
I
To make the modified version as new as possible. Once a conflict occurs, the workload for solving the problem will be relatively small. For files that are commonly used and modified, such as constants. Java
Struts-config.xml
And so on
File, but more importantly, it is best to notify other personnel to commit
.

4
For binary files, such as Word
Text
File, CVS
Comparison is not allowed. If a conflict occurs, you need to manually merge the files. You can back up the local files and override the files.
Update
And then merge and submit the modified parts in the backup file.

5
In case of file conflicts
First, compare and update the modifications on the server to the local device. If it is unclear, communicate with others. After the merger, select override and commit.
More
New. do not perform override and commit without comparison.
Operation!

6
, CVS
No
You are allowed to delete files on the server. Therefore, you are advised not to submit temporary files and directories, such as files and directories generated by compilation.

7
Separate files of different functional modules. Commit
,
One-time commit of files in the same functional module
It helps analyze errors, reduce conflicts, and roll back versions.

8

The submitted files must be tested. At least the files can be compiled locally for convenience.
Others test.

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.