O'Reilly logo

Linux in a Nutshell, Fourth Edition by Aaron Weber, Stephen Figgins, Ellen Siever

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

co

Synopsis

                  co [options] files
               

Retrieve a previously checked-in revision, and place it in the corresponding working file (or print to standard output if -p is specified). If you intend to edit the working file and check it in again, specify -l to lock the file. co accepts the standard options -q, -V, -x, and -z.

Options

-d date

Retrieve latest revision whose checkin timestamp is on or before date.

-f[R]

Force the working file to be overwritten.

-I[R]

Interactive mode; prompt user even when standard input is not a terminal.

-j R2:R3

This works like rcsmerge. R2 and R3 specify two revisions whose changes are merged (joined) into a third file: either the corresponding working file or a third revision (any R specified by other co options).

-k c

Expand keyword symbols according to flag c, which can be:

b

Like o, but perform its operations in binary mode, generating the previous revision’s keywords and values in binary.

k

Expand symbols to keywords only (no values). Useful for ignoring trivial differences during file comparison.

kv

Expand symbols to keyword and value (the default). Insert the locker’s name only during a ci -l or co -l.

kvl

Like kv, but always insert the locker’s name.

o

Expand symbols to keyword and value present in previous revision. This is useful for binary files that don’t allow substring changes.

v

Expand symbols to values only (no keywords). This prevents further keyword substitution and is not recommended. Cannot be used with -l.

-l[R]

Same as -r, but also lock ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required