— check out
program is used to check out revisions from
When a file is checked out, a copy is taken from the RCS repository, minus its
RCS information, and placed in the current working directory. Files may be
checked out as the most recent revision or according to a specific revision,
using the -r
Files are checked out in one of two possible modes: unlocked (the default) or
locked (using the -l
option). In unlocked mode,
any user may check out the file for reading. If changes are to be made to a
file though, it will have to be locked using the
option. During this time, no other users may
check out the file whilst it is locked.
also supports keyword substitution – see
man page for more
The following options are supported:
- Retrieve revision as of the latest revision no later than
- Force the overwriting of the working file.
- Interactive mode.
- Specify the keyword substitution mode.
- The same as -r, but also locks
- Set the modification time of the file to the date of the
- Print the latest revision no later than
rev to standard output.
- Be quiet about reporting.
- Retrieve the latest revision no later than
- Retrieve revision of the specified
- Preserve the modification time of RCS files.
- The same as -r, but also
unlocks the retrieved revision if it was locked.
- Print RCS's version number.
- Retrieve the latest revision which was checked in by the
specified user. If the
user argument is omitted, the login of
the user issuing the command is assumed.
- Specifies the suffixes for RCS files. Suffixes should be
separated by the ‘/’ character.
- Specify the date output format in keyword substitution, and
the default time zone for date used in
the -d option.
- If set, this variable should contain a list of
space-delimited options that are prepended to the argument list.
utility exits 0 on success,
and >0 if an error occurs.
Retrieve the latest revision of file foo.c
it for further editing:
$ co -l foo.c
Retrieve revision 1.5 of file foo.c
$ co -r1.5 foo.c