retrieves the latest revision whose number is less than or equal to rev. If rev indicates a branch rather than a revision, the latest revision on that branch is retrieved. If rev is omitted, the latest revision on the default branch (see the -b option of rcs(1)) is retrieved. If rev is $, co determines the revision number from keyword values in the working file. Otherwise, a revision is composed of one or more numeric or symbolic fields separated by periods. If rev begins with a period, then the default branch (normally the trunk) is prepended to it. If rev is a branch number followed by a period, then the latest revision on that branch is used. The numeric equivalent of a symbolic field is specified with the -n option of the commands ci(1) and rcs(1).
same as -r, except that it also locks the retrieved revision for the caller.
same as -r, except that it unlocks the retrieved revision if it was locked by the caller. If rev is omitted, -u retrieves the revision locked by the caller, if there is one; otherwise, it retrieves the latest revision on the default branch.
forces the overwriting of the working file; useful in connection with -q. See also "FILE MODES" below.
Generate keyword strings using the default form, e.g. "$Revision: 1.6 $" for the Revision keyword. A lockers name is inserted in the value of the Header, Id, and Locker keyword strings only as a file is being locked, i.e. by "ci -l" and "co -l". This is the default.
Like -kkv, except that a lockers name is always inserted if the given revision is currently locked.
Generate only keyword names in keyword strings; omit their values. See "KEYWORD SUBSTITUTION" below. For example, for the Revision keyword, generate the string $Revision$ instead of "$Revision: 1.6 $". This option is useful to ignore differences due to keyword substitution when comparing different revisions of a file. Log messages are inserted after $Log$ keywords even if -kk is specified, since this tends to be more useful when merging changes.
Generate the old keyword string, present in the working file just before it was checked in. For example, for the Revision keyword, generate the string "$Revision: 1.1 $" instead of "$Revision: 1.6 $" if that is how the string appeared when the file was checked in. This can be useful for file formats that cannot tolerate any changes to substrings that happen to take the form of keyword strings.
Generate a binary image of the old keyword string. This acts like -ko, except it performs all working file input and output in binary mode. This makes little difference on Posix and Unix hosts, but on DOS-like hosts one should use "rcs -i -kb" to initialize an RCS file intended to be used for binary files. Also, on all hosts, rcsmerge(1) normally refuses to merge files when -kb is in effect.
Generate only keyword values for keyword strings. For example, for the Revision keyword, generate the string 1.6 instead of "$Revision: 1.6 $". This can help generate files in programming languages where it is hard to strip keyword delimiters like "$Revision: $" from a string. However, further keyword substitution cannot be performed once the keyword names are removed, so this option should be used with care. Because of this danger of losing keywords, this option cannot be combined with -l, and the owner write permission of the working file is turned off; to edit the file later, check it out again without -kv.
prints the retrieved revision on the standard output rather than storing it in the working file. This option is useful when co is part of a pipe.
quiet mode; diagnostics are not printed.
interactive mode; the user is prompted and questioned even if the standard input is not a terminal.
retrieves the latest revision on the selected branch whose checkin date/time is less than or equal to date. The date and time can be given in free format. The time zone LT stands for local time; other common time zone names are understood. For example, the following dates are equivalent if local time is January 11, 1990, 8pm Pacific Standard Time, eight hours west of Coordinated Universal Time (UTC):
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 LToutput of ctime(3) + LT Thu Jan 11 20:00:00 PST 1990output of date(1) Fri Jan 12 04:00:00 GMT 1990 Thu, 11 Jan 1990 20:00:00 -0800Internet 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 zones 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 zones current month and year. The date/time must be quoted if it contains spaces.
Set the modification time on the new working file to be the date of the retrieved revision. Use this option with care; it can confuse make(1).
retrieves the latest revision on the selected branch whose state is set to state.
Preserve the modification time on the RCS file even if the RCS file changes because a lock is added or removed. This option can suppress extensive recompilation caused by a make(1) dependency of some other copy of the working file on the RCS file. Use this option with care; it can suppress recompilation even when it is needed, i.e. when the change of lock would mean a change to keyword strings in the other working file.
retrieves the latest revision on the selected branch which was checked in by the user with login name login. If the argument login is omitted, the callers login is assumed.
generates a new revision which is the join of the revisions on joinlist. This option is largely obsoleted by rcsmerge(1) but is retained for backwards compatibility.
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.
Print RCSs version number.
Emulate RCS version n, where n can be 3, 4, or 5. This can be useful when interchanging RCS files with others who are running older versions of RCS. To see which version of RCS your correspondents are running, have them invoke "rcs -V"; this works with newer versions of RCS. If it doesnt work, have them invoke rlog on an RCS file; if none of the first few lines of output contain the string branch: it is version 3; if the dates years have just two digits, it is version 4; otherwise, it is version 5. An RCS file generated while emulating version 3 loses its default branch. An RCS revision generated while emulating version 4 or earlier has a time stamp that is off by up to 13 hours. A revision extracted while emulating version 4 or earlier contains abbreviated dates of the form yy/mm/dd and can also contain different white space and line prefixes in the substitution for $Log$.
Use suffixes to characterize RCS files. See ci(1) for details.
specifies the date output format in keyword substitution, and specifies the default time zone for date in the -ddate option. The zone should be empty, a numeric UTC offset, or the special string LT for local time. The default is an empty zone, which uses the traditional RCS format of UTC without any time zone indication and with slashes separating the parts of the date; otherwise, times are output in ISO 8601 format with time zone indication. For example, if local time is January 11, 1990, 8pm Pacific Standard Time, eight hours west of UTC, then the time is output as follows:
The login name of the user who checked in the revision.
The date and time the revision was checked in. With -zzone a numeric time zone offset is appended; otherwise, the date is UTC.
A standard header containing the full pathname of the RCS file, the revision number, the date and time, the author, the state, and the locker (if locked). With -zzone a numeric time zone offset is appended to the date; otherwise, the date is UTC.
Same as $Header$, except that the RCS filename is without a path.
The login name of the user who locked the revision (empty if not locked).
The log message supplied during checkin, preceded by a header containing the RCS filename, the revision number, the author, and the date and time. With -zzone a numeric time zone offset is appended; otherwise, the date is UTC. Existing log messages are not replaced. Instead, the new log message is inserted after $Log:...$. This is useful for accumulating a complete change log in a source file.
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 " * " prefix inside a multiline comment. For example, the initial log comment of a C program conventionally is of the following form:
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 symbolic name used to check out the revision, if any. For example, "co -rJoe" generates "$Name: Joe $". Plain co generates just "$Name: $".
The name of the RCS file without a path.
The revision number assigned to the revision.
The full pathname of the RCS file.
The state assigned to the revision with the -s option of rcs(1) or ci(1).
The following characters in keyword values are represented by escape sequences to keep keyword strings well-formed.