MPE/iX Shell and Utilities Reference Manual, Vol 1

co(1) MPE/iX Shell and Utilities co(1)
–r[rev]
retrieves the latest revision number that is less than or equal to rev.Ifrev 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 is retrieved (see the –b option for
rcs(1)). rev is composed of one or more numeric or symbolic names separated by a
dot (.). The numeric equivalent of a symbolic field is specified with the –n option of
the commands ci(1) and rcs(1).
–sstate
retrieves the latest revision on the selected branch with a state that is set to state.
–u[rev]
same as –r, except that it unlocks the retrieved revision (if it was locked by the per-
son checking it out). If rev is omitted, –u retrieves the latest revision locked by the
user; if no such lock exists, it retrieves the latest revision on the default branch.
–w[author]
retrieves the latest revision on the selected branch which was checked in by the user
with login name author. If the argument author is omitted, the caller’s login name is
assumed.
–x forces keyword expansion. This option takes precedence over the –K option.
–Yfile specifies file as the local configuration file.
Keyword Substitution
Strings of the form $keyword$ and $keyword:...$ embedded in the text are replaced with
strings of the form $keyword: value$ where keyword and value are pairs from the Table of
Keywords shown in this man page. Keywords may be embedded in literal strings or com-
ments to identify a revision. To use keyword expansion, you enter strings of the form
$keyword$
in the original file. On check-out, 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 is
replaced during the next check-out. Thus, the keyword values are automatically updated on
check-out.
Keyword expansion can be performed in all kinds of files, including binary files. If keyword
expansion is inappropriate for your file, you can specify the –k option of co or add
NoKeywordExpand to your configuration file. If you wish to remove all previous keyword
expansions, specify the –K option of co.
1-112 Commands and Utilities