rcsintro.5 (2010 09)

r
rcsintro(5) rcsintro(5)
Both the RCS file and the working file are given. The RCS file name is of the form
path1 /workfile ,v and the working file name is of the form path2
/workfile, where path1 and path2
are (possibly different or empty) paths and workfile is a file name.
Only the RCS file is given. Then the working file is assumed to be in the current directory and its
name is derived from the name of the RCS file by removing path1
/ and the suffix ,v.
Only the working file is given. Then the name of the RCS file is derived from the name of the work-
ing file by removing path2
/ and appending the suffix
,v.
If the RCS file name is omitted or specified without a path, RCS commands look for the RCS file in the
directory
./RCS (or the directory it points to if it is a directory link), then in the current working direc-
tory.
RCS Directory Links
RCS supports directory links. If a regular file named RCS exists in the current working directory, RCS
interprets the first line as a path name to the directory where RCS files are stored. RCS can follow a
chain of up to ten directory links to reach the RCS directory.
Automatic Identification
RCS can put special strings for identification into your source and object code. To obtain such
identification, place the marker:
$Header$
into your text, for instance inside a comment. RCS replaces this marker with a string of the form:
$Header: filename revision_number date time author state
$
With such a marker on the first page of each module, you can always see with which revision you are
working. RCS keeps the markers up-to-date automatically. To propagate the markers into your object
code, simply put them into literal character strings. In C, this is done as follows:
static char rcsid[] = "$Header$";
The command ident extracts such markers from any file, even object code and dumps. Thus,
ident
lets you find out which revisions of which modules were used in a given program.
You may also find it useful to put the marker
$Log$ into your text, inside a comment. This marker accu-
mulates the log messages that are requested during check-in. Thus, you can maintain the complete his-
tory of your file directly inside it. There are several additional identification markers. See co(1) for
details.
WARNINGS
Names of RCS files are generated by appending
,v to the end of the working file name. If the resulting
RCS file name is too long for the file system on which the RCS file should reside, the RCS command ter-
minates with an error message.
RCS is designed to be used with TEXT files only. Attempting to use RCS with nontext (binary) files will
result in data corruption.
AUTHOR
rcsintro was developed by Walter F. Tichy, Purdue University, West Lafayette, IN 47907, USA.
Copyright 1982 by Walter F. Tichy.
SEE ALSO
ci(1), co(1), ident(1), merge(1), rcs(1), rcsdiff(1), rcsmerge(1), rlog(1), rcsfile(4).
"Design, Implementation, and Evaluation of a Revision Control System," by Walter F. Tichy, in Proceed-
ings of the 6th International Conference on Software Engineering , IEEE, Tokyo, September 1982.
HP-UX 11i Version 3: September 2010 3 Hewlett-Packard Company 3