6.7. Examining the CVS Repository

Problem

You want to explore the CVS repository from inside Eclipse.

Solution

Use the CVS Repository Exploring perspective. Open this perspective by selecting Window Open Perspective Other CVS Repository Exploring. Or, if you’ve opened this perspective in the past—which means Eclipse will have added it to the Open Perspective menu—select Window Open Perspective CVS Repository Exploring.

Discussion

The CVS Repository Exploring perspective enables you to see what’s inside the CVS repository. For example, you can see the entire GreetingApp project, all the way down to the GreetingClass.java file, in the CVS Repositories view at left in Figure 6-8.

The CVS repository perspective

Figure 6-8. The CVS repository perspective

This project, GreetingApp, is in the repository’s HEAD section, which is the main development stream.

Tip

Also note the CVSROOT directory, which holds CVS administrative data; the Branches node, which holds any files in other branches of development; and the Versions node, which holds explicitly labeled versions.

Eclipse 3.0

In Eclipse 3.0, you can determine who’s responsible for a bug. You right-click a file and select Team Show Annotation to open a CVS Annotation view showing the selected file in the CVS Repositories view. When you select a line in the editor, the CVS Annotation view reveals who released that edit to the file.

See Also

Recipe 6.8 on checking projects out ...

Get Eclipse Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.