Annotation of src/usr.bin/rcs/co.1, Revision 1.13
1.13 ! xsa 1: .\" $OpenBSD: co.1,v 1.12 2005/11/21 21:42:00 jmc 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.13 ! xsa 26: .Op Fl V
1.7 niallo 27: .Op Fl d Ns Ar date
1.13 ! xsa 28: .Op Fl f Ns Op Ar rev
! 29: .Op Fl I Ns Op Ar rev
1.7 niallo 30: .Op Fl k Ns Ar mode
31: .Op Fl l Ns Op Ar rev
1.10 niallo 32: .Op Fl M Ns Op Ar rev
1.7 niallo 33: .Op Fl m Ns Ar msg
1.9 niallo 34: .Op Fl p Ns Op Ar rev
1.13 ! xsa 35: .Op Fl q Ns Op Ar rev
1.7 niallo 36: .Op Fl r Ns Op Ar rev
37: .Op Fl s Ns Ar state
38: .Op Fl u Ns Op Ar rev
39: .Op Fl w Ns Ar user
40: .Op Fl x Ns Ar suffixes
41: .Op Fl z Ns Ar tz
1.1 xsa 42: .Ar file ...
43: .Ek
44: .Sh DESCRIPTION
45: .Nm
46: always performs keyword substitution.
47: .Pp
48: The following options are supported:
49: .Bl -tag -width Ds
1.7 niallo 50: .It Fl d Ns Ar date
1.1 xsa 51: Retrieve revision as of the latest revision no later than
52: .Ar date .
1.13 ! xsa 53: .It Fl f Ns Op Ar rev
1.1 xsa 54: Force the overwriting of the working file.
1.13 ! xsa 55: .It Fl I Ns Op Ar rev
1.1 xsa 56: Interactive mode.
1.7 niallo 57: .It Fl k Ns Ar mode
1.1 xsa 58: Specify the keyword substitution mode.
1.7 niallo 59: .It Fl l Ns Op Ar rev
1.1 xsa 60: The same as
61: .Fl r ,
1.2 jmc 62: but also locks the revision.
1.10 niallo 63: .It Fl M Ns Op Ar rev
1.2 jmc 64: Set the modification time of the file to the date of the
1.1 xsa 65: retrieved revision.
1.7 niallo 66: .It Fl m Ns Ar msg
1.1 xsa 67: Specify a log message.
68: A line beginning with a hash character
69: .Pq Sq #
70: is considered a comment and ignored.
1.9 niallo 71: .It Fl p Ns Op Ar rev
72: Print the latest revision no later than
73: .Ar rev
74: to standard output.
75: If
76: .Ar rev
77: is not specified, print HEAD.
1.13 ! xsa 78: .It Fl q Ns Op Ns Ar rev
1.1 xsa 79: Be quiet about reporting.
1.7 niallo 80: .It Fl r Ns Op Ar rev
1.1 xsa 81: Retrieve the latest revision no later than
82: .Ar rev .
1.5 niallo 83: If
84: .Ar rev
85: is not specified, retrieve HEAD.
1.7 niallo 86: .It Fl s Ns Ar state
1.1 xsa 87: Retrieve revision of the specified
88: .Ar state
89: only.
1.7 niallo 90: .It Fl u Ns Op Ar rev
1.1 xsa 91: The same as
92: .Fl r ,
1.2 jmc 93: but also unlocks the retrieved revision if it was locked.
1.1 xsa 94: .It Fl V
95: Print RCS's version number.
1.7 niallo 96: .It Fl w Ns Ar user
1.1 xsa 97: Retrieve the latest revision which was checked in by the specified
98: .Ar user .
99: If the
100: .Ar user
1.2 jmc 101: argument is omitted, the login of the user issuing the command
1.1 xsa 102: is assumed.
1.7 niallo 103: .It Fl x Ns Ar suffixes
1.1 xsa 104: Specifies the suffixes for RCS files.
105: Suffixes should be separated by the
106: .Sq /
107: character.
1.7 niallo 108: .It Fl z Ns Ar tz
1.1 xsa 109: Specify the date output format in keyword substitution, and the
110: default timezone for
111: .Ar date
112: used in the
113: .Fl d
114: option.
115: .El
116: .Sh ENVIRONMENT
117: .Bl -tag -width RCSINIT
118: .It Ev RCSINIT
119: If set, this variable should contain a list of space-delimited options that
120: are prepended to the argument list.
121: .El
1.11 xsa 122: .Sh EXAMPLES
123: Retrieve the latest revision of file
124: .Pa foo.c
125: and lock it for further editing:
126: .Pp
127: .Dl $ co -l foo.c
128: .Pp
129: Retrieve revision 1.5 of file
130: .Pa foo.c :
131: .Pp
132: .Dl $ co -r1.5 foo.c
1.1 xsa 133: .Sh SEE ALSO
134: .Xr ci 1 ,
1.4 jmc 135: .Xr ident 1 ,
1.1 xsa 136: .Xr rcs 1 ,
137: .Xr rcsclean 1 ,
138: .Xr rcsdiff 1 ,
1.8 xsa 139: .Xr rcsmerge 1 ,
1.6 xsa 140: .Xr rlog 1