|CO(1)||General Commands Manual||CO(1)|
co — check out RCS
co program is used to check out
revisions from RCS files.
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
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
-l option. During this time, no other users may
check out the file whilst it is locked.
co also supports keyword substitution
– see the rcs(1) man page
for more information.
The following options are supported:
-r, but also locks the revision.
-r, but also unlocks the retrieved revision if it was locked.
co utility exits 0 on success,
and >0 if an error occurs.
Retrieve the latest revision of file foo.c and lock it for further editing:
$ co -l foo.c
Retrieve revision 1.5 of file foo.c:
$ co -r1.5 foo.c
|September 3, 2010||OpenBSD-6.7|