Java Reference
In-Depth Information
8.2 Working with files under CVS
Once you've enabled
CVS
support, a new
CVS
menu is added to the main menu
and the context menu of the editor and
Project
browser windows. You'll use the
CVS
client in the examples for the remainder of the chapter. It's the most widely
used version control system, and it's applicable for every platform. Each type of
version control system may support slightly different options, but their operation
is more or less the same.
8.2.1
Retrieving files from the repository
After you enable
CVS
support,
IDEA
lets you create new modules from
CVS
, check
out existing ones, or automatically detect and configure
IDEA
to use an existing
working directory.
Browsing the contents of your repository
You can use the
File | Browse
CVS
Repository
command to explore the contents
of a
CVS
repository. You're prompted to select your repository from among the
CVS
Roots you've configured, and you're presented with a browser tool window
like the one shown in figure 8.6. You can expand the nodes of the tree to explore
all the files in the repository. To view any file, double-click it; it will be loaded into
the editor. The editor tab is locked, because you're accessing a read-only view of
the file. You can also access an annotated view of the source code or review the
revision history of any file, both of which will be discussed later in this chapter. To
check out the file or an entire folder, right-click the item in question and select
the
Check Out
item from the context menu; or, use the
Checkout
command
described next.
Figure 8.6
The Browse CVS Repository window