Function Description of CVS interface in eclipse-special cases and their processing (2)

Source: Internet
Author: User

// Original address: http://hi.baidu.com/xublog/blog/item/06a9261120fd9b78cb80c435.html

 

5.6 Other Functions

In this section, we will introduce several very useful eclipse functions. These functions help you improve the efficiency of CVs and eclipse.

5.6.1 support for CVS by the quick differentiation feature in the editor

In Chapter 2nd "Eclipse getting started" of this book, you know how to edit
You can add comments to the file addition and modification operations. If you are in workbench | editor | quick
Latest CVS is enabled on the diff preference page.
Revision option, the file comment added by the quick difference function is added based on the latest version of the file in CVS. When submitting changes to CVS or using a file in CVS
When the file is replaced by a version 1, the comments added by the quick difference function will be deleted.

5.6.2 Patch: fast and simple sharing of changes

A patch is a file that contains the differences between a resource library instance and the workspace instance of the resource. A patch represents a difference in a single file (or a complete project. Patches allow you to share changes that have not been submitted to CVS. Patches are useful for many reasons.

● Because you do not have the permission to submit resources to CVS, you need to send the patch to a person with the permission to submit resources to CVS.

● You need to prepare an emergency modification or temporary workspace for the problem.

● Before submitting important changes to CVS, you may want others to verify your changes. In this case, you can send the patch to the validators for testing.

Use the shortcut menu team | create
Patch ..., We can create a patch file. This operation will call create
The patch wizard guides you through the creation of patch files. To apply a patch, use the shortcut menu team | apply patch .... This operation will call Apply
Patch wizard. Eclipse online documentation workbench User GuideWorking with patches
The two operations described in this section are wonderful.

5.6.3 project set: accelerate new Workspace

Team support provides editions for projects (one or more projects) in the Workspace
Encapsulation of control information. This encapsulation function is called a project set. The purpose of a project set is to pre-Prepare all required projects to a workspace from the resource library required for task execution. Built in the Application
Multiple projects with mutual dependencies may be used in the process. The following operations may be tedious and prone to errors: determine the required projects, and then manually add these required projects from the resource library
In the workspace. A project set is a functional unit of Eclipse. The resource library provider can select whether or not this function is supported (Yes is used by many resource library providers ). CVS provides
Yes. Projects encapsulated by a project set may be managed by different resource pools.

The project set information is contained in a file. To create the project set information
File, select file | export | team project set on the menu bar. To use the project set information file, select File
| Import | Team Project
Set options. By using the Export wizard, we can define the projects included in the project set. For general purpose, the final project set information file can be sent to others for execution in CVS.
Import or maintain. For the developed application, you can maintain multiple project set files for the snapshots at key nodes in the development lifecycle.

During the import process, all the projects defined in the project set file are
CVS is automatically detected in your workspace. During the import process, one of the most robust ways is to disable automatic build preferences (build in the workbench preferences page ).
Automatically ). Disable build
With the automatically setting, we can avoid compilation and build operations during the import process, thus accelerating the import of resources. However, after the import operation is complete, remember to re-enable this preference.

5.6.4 disconnect a project from CVS or reassign a CVS resource library to the Project

Use team |
Disconnect... You can disconnect a project from CVS. After selecting the shortcut menu team |
Disconnect... A dialog box is displayed. This dialog box will ask you to determine whether to save the project's CVS metadata. If the number of CVS elements for this project is retained
Data, use team | share
Project... Operation to reconnect the project to the same CVS resource library. If you delete the CVS metadata, you can share the project with other resource libraries.

If you want to re-assign a project to another CVS resource library, you can open the CVS resource library page for the project, and then select change sharing... Button. Use disconnect... And share project... Operations are logically equivalent.

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.