Linux in a Nutshell, Third Edition
by Ellen Siever, Stephen Spainhour, Jessica P. Hekman, Stephen Figgins
The CVS Utility
This section offers general background about CVS.
CVS Command Format
CVS commands are of the form:
cvsglobal_optionscommandcommand_options
For example, here is a simple sequence of commands showing both kinds of options in the context of creating a repository, importing existing files, and performing a few common operations on them:
user@localhost$cvs -d /usr/local/cvsrep inituser@localhost$cd ~/work/hellouser@localhost$cvs -d /usr/local/cvsrep import -m 'Import' hello vendor startuser@localhost$cd ..user@localhost$mv hello hello.bakuser@localhost$cvs -d /usr/local/cvsrep checkout hellouser@localhost$cd hellouser@localhost$vi hellouser@localhost$cvs commit -m 'Fixed a typo'user@localhost$cvs tag hello-1_0user@localhost$cvs remove -f Makefileuser@localhost$cvs commit -m 'Removed old Makefile'user@localhost$cvs upd -r hello-1_0user@localhost$cvs upd -A
Some global options are common to both user and administrator commands, and some are specific to each of these. The common global options are described in the next section, and the user and administrator options are described in the Section 14.4 and Section 14.3 sections, respectively.
Common Global Options
Table 14.1 lists the global options that apply to both user and administrator commands.
Table 14-1. Common Global Options
| Option | Description |
|---|---|
-b
bindir
|
Location of external RCS programs. This option is obsolete, having been deprecated at CVS versions above 1.9.18. |
-T
tempdir
|
Absolute path ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access