[BACK]Return to co.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / rcs

Annotation of src/usr.bin/rcs/co.1, Revision 1.12

1.12    ! jmc         1: .\"     $OpenBSD: co.1,v 1.11 2005/11/21 15:45:22 xsa Exp $
1.1       xsa         2: .\"
                      3: .\" Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org>
                      4: .\" All rights reserved.
                      5: .\"
                      6: .\" Permission to use, copy, modify, and distribute this software for any
                      7: .\" purpose with or without fee is hereby granted, provided that the above
                      8: .\" copyright notice and this permission notice appear in all copies.
                      9: .\"
                     10: .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
                     11: .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
                     12: .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
                     13: .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                     14: .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
                     15: .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
                     16: .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1.2       jmc        17: .Dd October 03, 2005
1.1       xsa        18: .Dt CO 1
                     19: .Os
                     20: .Sh NAME
                     21: .Nm co
                     22: .Nd check out RCS revisions
                     23: .Sh SYNOPSIS
                     24: .Nm
                     25: .Bk -words
1.10      niallo     26: .Op Fl fIqV
1.1       xsa        27: .Op Ar rev
1.7       niallo     28: .Op Fl d Ns Ar date
                     29: .Op Fl k Ns Ar mode
                     30: .Op Fl l Ns Op Ar rev
1.10      niallo     31: .Op Fl M Ns Op Ar rev
1.7       niallo     32: .Op Fl m Ns Ar msg
1.9       niallo     33: .Op Fl p Ns Op Ar rev
1.7       niallo     34: .Op Fl r Ns Op Ar rev
                     35: .Op Fl s Ns Ar state
                     36: .Op Fl u Ns Op Ar rev
                     37: .Op Fl w Ns Ar user
                     38: .Op Fl x Ns Ar suffixes
                     39: .Op Fl z Ns Ar tz
1.1       xsa        40: .Ar file ...
                     41: .Ek
                     42: .Sh DESCRIPTION
                     43: .Nm
                     44: always performs keyword substitution.
                     45: .Pp
                     46: The following options are supported:
                     47: .Bl -tag -width Ds
1.7       niallo     48: .It Fl d Ns Ar date
1.1       xsa        49: Retrieve revision as of the latest revision no later than
                     50: .Ar date .
                     51: .It Fl f
                     52: Force the overwriting of the working file.
                     53: .It Fl I
                     54: Interactive mode.
1.7       niallo     55: .It Fl k Ns Ar mode
1.1       xsa        56: Specify the keyword substitution mode.
1.7       niallo     57: .It Fl l Ns Op Ar rev
1.1       xsa        58: The same as
                     59: .Fl r ,
1.2       jmc        60: but also locks the revision.
1.10      niallo     61: .It Fl M Ns Op Ar rev
1.2       jmc        62: Set the modification time of the file to the date of the
1.1       xsa        63: retrieved revision.
1.7       niallo     64: .It Fl m Ns Ar msg
1.1       xsa        65: Specify a log message.
                     66: A line beginning with a hash character
                     67: .Pq Sq #
                     68: is considered a comment and ignored.
1.9       niallo     69: .It Fl p Ns Op Ar rev
                     70: Print the latest revision no later than
                     71: .Ar rev
                     72: to standard output.
                     73: If
                     74: .Ar rev
                     75: is not specified, print HEAD.
1.1       xsa        76: .It Fl q
                     77: Be quiet about reporting.
1.7       niallo     78: .It Fl r Ns Op Ar rev
1.1       xsa        79: Retrieve the latest revision no later than
                     80: .Ar rev .
1.5       niallo     81: If
                     82: .Ar rev
                     83: is not specified, retrieve HEAD.
1.7       niallo     84: .It Fl s Ns Ar state
1.1       xsa        85: Retrieve revision of the specified
                     86: .Ar state
                     87: only.
1.7       niallo     88: .It Fl u Ns Op Ar rev
1.1       xsa        89: The same as
                     90: .Fl r ,
1.2       jmc        91: but also unlocks the retrieved revision if it was locked.
1.1       xsa        92: .It Fl V
                     93: Print RCS's version number.
1.7       niallo     94: .It Fl w Ns Ar user
1.1       xsa        95: Retrieve the latest revision which was checked in by the specified
                     96: .Ar user .
                     97: If the
                     98: .Ar user
1.2       jmc        99: argument is omitted, the login of the user issuing the command
1.1       xsa       100: is assumed.
1.7       niallo    101: .It Fl x Ns Ar suffixes
1.1       xsa       102: Specifies the suffixes for RCS files.
                    103: Suffixes should be separated by the
                    104: .Sq /
                    105: character.
1.7       niallo    106: .It Fl z Ns Ar tz
1.1       xsa       107: Specify the date output format in keyword substitution, and the
                    108: default timezone for
                    109: .Ar date
                    110: used in the
                    111: .Fl d
                    112: option.
                    113: .El
                    114: .Sh ENVIRONMENT
                    115: .Bl -tag -width RCSINIT
                    116: .It Ev RCSINIT
                    117: If set, this variable should contain a list of space-delimited options that
                    118: are prepended to the argument list.
                    119: .El
1.11      xsa       120: .Sh EXAMPLES
                    121: Retrieve the latest revision of file
                    122: .Pa foo.c
                    123: and lock it for further editing:
                    124: .Pp
                    125: .Dl $ co -l foo.c
                    126: .Pp
                    127: Retrieve revision 1.5 of file
                    128: .Pa foo.c :
                    129: .Pp
                    130: .Dl $ co -r1.5 foo.c
1.1       xsa       131: .Sh SEE ALSO
                    132: .Xr ci 1 ,
1.4       jmc       133: .Xr ident 1 ,
1.1       xsa       134: .Xr rcs 1 ,
                    135: .Xr rcsclean 1 ,
                    136: .Xr rcsdiff 1 ,
1.8       xsa       137: .Xr rcsmerge 1 ,
1.6       xsa       138: .Xr rlog 1