Basic RCS Instructions
ci to check in a file,
co to check out a file,
rcsdiff to compare differences between revisions, and
rlog to check the RCS log for a file.
ci [ -rrevision -l -u ] filename co [ -rrevision -l -u ] filename rcsdiff [ -rrevision ] filename rlog [ -h ] filenameIn all cases, the
-r option allows you to specify the
revision number of the file you wish to check in, check out,
or compare to the currently checked-out file. The -l
option specifies a locked copy (with write permissions for the user)
of a file. The -u option specifies an unlocked copy
(with write permissions for the user) of a file.
thread.cc,
so that we may modify it.
co -l thread.cc
After making changes, let's check in the new revision.
ci -u thread.cc
We should get back an unlocked copy of the file. If we don't specify
either an unlocked copy (with the -u option) or a locked
copy (with the -l option), there will not be a file in
the directory after checking it in.
thread.cc,
and we'd like to see how it differs from the previously checked-in revision.
rcsdiff thread.cc
thread.cc to any previous revision using the
-r option. The format should be that of a normal
diff.
thread.cc. We can check our log entries corresponding
to each revision of the file.
rlog thread.cc
more.
thread.cc is
currently checked out is to view the header information for the file's RCS log.
rlog -h thread.cc
locks: strict" line.