Java Reference
In-Depth Information
have two different source versions; bug fixes have to be made in both sources,
new features have to be added twice, and so on.
The easiest way to deal with that is to keep your number of active branch
tags small; you likely don't want to have to apply a fix to 14 different
branches. Also, keep the lifespan of the branches brief—which is, of course, a
relative term.
CVS does provide commands to merge a branch back into the source head.
But for this, we will refer you to other CVS material. Our job is to give you an
overview and a feel for the possibilities. For this sort of task you will want a
complete reference manual.
For more variations on cvs tag , type:
$ cvs tag --help
cvs export
8.2.10
If you want to produce a copy of your source tree without the CVS subdirecto-
ries—just the pure source—you can use the cvs export command. Like the
inverse of import, it will check out a copy of the source, but will not create any
of the CVS subdirectories that allow CVS to manage the commits, checkouts,
logging, status, tags, and so on. In other words, the exported directories are not
a CVS sandbox—they're just a copy of the files.
NOTE
Changes made to an exported collection of files cannot be committed back to
CVS. Of course you can get the changes back into CVS by creating a sandbox
with a cvs checkout command, copying all or some of the exported files into
that sandbox, and then committing the changes from there. But it's better to
think of export as a one-way street.
8.2.11
If you are one of those people who worry excessively about efficiency, let us re-
assure you that CVS is OK. You could think of a CVS repository as saving each
revision of a file (for example, versions 1.1, 1.2, and 1.3), but in fact CVS only
keeps a single full version of a file—the latest version—and then stores the
deltas , that is, changes required to revert back to the previous versions. So it
keeps a full version of 1.3, but then only the differences between 1.3 and 1.2
A Quick Look behind the Scenes
Search WWH ::




Custom Search