co | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
NAME | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
SYNOPSIS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
DESCRIPTION | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Pathnames matching an RCS suffix denote RCS files; all others denote working files. Names are paired as explained in ci(1).
Revisions of an RCS file can be checked out locked or unlocked. Locking a revision prevents overlapping updates. A revision checked out for reading or processing (e.g., compiling) need not be locked. A revision checked out for editing and later checkin must normally be locked. Checkout with locking fails if the revision to be checked out is currently locked by another user. (A lock can be broken with rcs(1).) Checkout with locking also requires the caller to be on the access list of the RCS file, unless he is the owner of the file or the superuser, or the access list is empty. Checkout without locking is not subject to accesslist restrictions, and is not affected by the presence of locks.
A revision is selected by options for revision or branch number, checkin date/time, author, or state. When the selection options are applied in combination, co retrieves the latest revision that satisfies all of them. If none of the selection options is specified, co retrieves the latest revision on the default branch (normally the trunk, see the -b option of rcs(1)). A revision or branch number can be attached to any of the options -f, -I, -l, -M, -p, -q, -r, or -u. The options -d (date), -s (state), and -w (author) retrieve from a single branch, the selected branch, which is either specified by one of -f, ..., -u, or the default branch.
A co command applied to an RCS file with no revisions creates a zero-length working file. co always performs keyword substitution (see below).
OPTIONS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
8:00 pm lt 4:00 AM, Jan. 12, 1990 default is UTC 1990-01-12 04:00:00+00 ISO 8601 (UTC) 1990-01-11 20:00:00-08 ISO 8601 (local time) 1990/01/12 04:00:00 traditional RCS format Thu Jan 11 20:00:00 1990 LT output of ctime(3) + LT Thu Jan 11 20:00:00 PST 1990 output of date(1) Fri Jan 12 04:00:00 GMT 1990 Thu, 11 Jan 1990 20:00:00 -0800 Internet RFC 822 12-January-1990, 04:00 WET
Most fields in the date and time can be defaulted. The default time zone is normally UTC, but this can be overridden by the -z option. The other defaults are determined in the order year, month, day, hour, minute, and second (most to least significant). At least one of these fields must be provided. For omitted fields that are of higher significance than the highest provided field, the time zone's current values are assumed. For all other omitted fields, the lowest possible values are assumed. For example, without -z, the date 20, 10:30 defaults to 10:30:00 UTC of the 20th of the UTC time zone's current month and year. The date/time must be quoted if it contains spaces.
The joinlist is a comma-separated list of pairs of the form rev2:rev3, where rev2 and rev3 are (symbolic or numeric) revision numbers. For the initial such pair, rev1 denotes the revision selected by the above options -f, ..., -w. For all other pairs, rev1 denotes the revision generated by the previous pair. (Thus, the output of one join becomes the input to the next.)
For each pair, co joins revisions rev1 and rev3 with respect to rev2. This means that all changes that transform rev2 into rev1 are applied to a copy of rev3. This is particularly useful if rev1 and rev3 are the ends of two branches that have rev2 as a common ancestor. If rev1<rev2<rev3 on the same branch, joining generates a new revision which is like rev3, but with all changes that lead from rev1 to rev2 undone. If changes from rev2 to rev1 overlap with changes from rev2 to rev3, co reports overlaps as described in merge(1).
For the initial pair, rev2 can be omitted. The default is the common ancestor. If any of the arguments indicate branches, the latest revisions on those branches are assumed. The options -l and -u lock or unlock rev1.
option time output -z 1990/01/12 04:00:00 (default) -zLT 1990-01-11 20:00:00-08 -z+05:30 1990-01-12 09:30:00+05:30
The -z option does not affect dates stored in RCS files, which are always UTC.
KEYWORD SUBSTITUTION | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Initially, the user enters strings of the form $keyword$. On checkout, co replaces these strings with strings of the form $keyword:value$. If a revision containing strings of the latter form is checked back in, the value fields will be replaced during the next checkout. Thus, the keyword values are automatically updated on checkout. This automatic substitution can be modified by the -k options.
Keywords and their corresponding values:
Each inserted line is prefixed by the string that prefixes the $Log$ line. For example, if the $Log$ line is ``// $Log: tan.cc $'', RCS prefixes each line of the log with ``// ''. This is useful for languages with comments that go to the end of the line. The convention for other languages is to use a `` * rq prefix inside a multiline comment. For example, the initial log comment of a C program conventionally is of the following form:
/* * $Log$ */
For backwards compatibility with older versions of RCS, if the log prefix is /* or (* surrounded by optional white space, inserted log lines contain a space instead of / or (; however, this usage is obsolescent and should not be relied on.
The following characters in keyword values are represented by escape sequences to keep keyword strings well-formed.
char escape sequence tab \t newline \n space \040 $ \044 \ \\
FILE MODES | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
If a file with the name of the working file exists already and has write permission, co aborts the checkout, asking beforehand if possible. If the existing working file is not writable or -f is given, the working file is deleted without asking.
FILES | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
ENVIRONMENT | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
DIAGNOSTICS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
IDENTIFICATION | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
SEE ALSO | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
LIMITS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
There is no way to selectively suppress the expansion of keywords, except
by writing them differently. In nroff and troff, this is done by embedding the
null-character
\&
into the keyword.
Sommaire | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
Table des mots clés | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
$Author$ | KEYWORD SUBSTITUTION |
$Date$ | KEYWORD SUBSTITUTION |
$Header$ | KEYWORD SUBSTITUTION |
$Id$ | KEYWORD SUBSTITUTION |
$Locker$ | KEYWORD SUBSTITUTION |
$Log$ | KEYWORD SUBSTITUTION |
$Name$ | KEYWORD SUBSTITUTION |
$RCSfile$ | KEYWORD SUBSTITUTION |
$Revision$ | KEYWORD SUBSTITUTION |
$Source$ | KEYWORD SUBSTITUTION |
$State$ | KEYWORD SUBSTITUTION |
-ddate | OPTIONS |
-f[rev] | OPTIONS |
-I[rev] | OPTIONS |
-jjoinlist | OPTIONS |
-kb | OPTIONS |
-kk | OPTIONS |
-kkv | OPTIONS |
-kkvl | OPTIONS |
-ko | OPTIONS |
-kv | OPTIONS |
-l[rev] | OPTIONS |
-M[rev] | OPTIONS |
-p[rev] | OPTIONS |
-q[rev] | OPTIONS |
-r[rev] | OPTIONS |
-S | OPTIONS |
-sstate | OPTIONS |
-T | OPTIONS |
-u[rev] | OPTIONS |
-V | OPTIONS |
-Vn | OPTIONS |
-w[login] | OPTIONS |
-xsuffixes | OPTIONS |
-zzone | OPTIONS |