summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/ci.1
blob: a7d46a40757473b26713915437272b89d158af55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
.\"	$OpenBSD: ci.1,v 1.35 2007/08/26 21:35:43 sobrado Exp $
.\"
.\" Copyright (c) 2005 Niall O'Higgins <niallo@openbsd.org>
.\" All rights reserved.
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.Dd $Mdocdate: August 26 2007 $
.Dt CI 1
.Os
.Sh NAME
.Nm ci
.Nd check in RCS revisions
.Sh SYNOPSIS
.Nm
.Bk -words
.Op Fl qV
.Op Fl d Ns Op Ar date
.Op Fl f Ns Op Ar rev
.Op Fl I Ns Op Ar rev
.Op Fl i Ns Op Ar rev
.Op Fl j Ns Op Ar rev
.Op Fl k Ns Op Ar rev
.Op Fl l Ns Op Ar rev
.Op Fl M Ns Op Ar rev
.Op Fl m Ns Ar msg
.Op Fl N Ns Ar symbol
.Op Fl n Ns Ar symbol
.Op Fl r Ns Op Ar rev
.Op Fl s Ns Ar state
.Op Fl t Ns Ar str
.Op Fl u Ns Op Ar rev
.Op Fl w Ns Ar username
.Op Fl x Ns Ar suffixes
.Op Fl z Ns Ar tz
.Ar
.Ek
.Sh DESCRIPTION
The
.Nm
program is used to check in new revisions to RCS files.
.Pp
When a file is checked in,
it is stored in the RCS directory with a specific revision number,
and the original file itself is deleted.
The RCS file is stored with the same name, but with
.Sq ,v
appended.
.Nm
will prompt for a check-in message,
to be stored with the file,
which can be displayed using
.Xr rlog 1 .
.Pp
Revision numbering starts at 1.1
and increases logically.
Numbering can be altered using the
.Fl k
option, however.
The
.Sq ,v
suffix can also be altered,
using the
.Fl x
option.
.Pp
.Nm
also supports
keyword substitution \(en
see the
.Xr rcs 1
man page for more information.
.Pp
The following options are supported:
.Bl -tag -width Ds
.It Fl d Ns Op Ar date
Uses
.Ar date
for check-in date and time.
If
.Ar date
is not specified, use the working file's last modification time.
.It Fl f Ns Op Ar rev
Force check-in
\(en even if no changes have been made to the working file.
.It Fl I Ns Op Ar rev
Interactive mode.
.It Fl i Ns Op Ar rev
Only do initial check-in.
Print error and refuse to do check-in if the RCS file already exists.
.It Fl j Ns Op Ar rev
Only do update check-in.
Print error and refuse to do check-in if the RCS file does not already exist.
.It Fl k Ns Op Ar rev
Search the working file for keywords and set the revision number,
creation date, state and author to the values found in these keywords
instead of computing them.
.It Fl l Ns Op Ar rev
The same as
.Fl r ,
but also immediately checks out the deposited revision and locks it.
This is useful if you wish to continue to edit the working file after check-in.
.It Fl M Ns Op Ar rev
Set the modification time of the file to the date of the
retrieved revision.
.It Fl m Ns Ar msg
Specify a log message.
A line beginning with a hash character
.Pq Sq #
is considered a comment and ignored.
.It Fl N Ns Ar symbol
Assign the symbolic name
.Ar symbol
to the checked in revision, overwriting any previous assignment of
.Ar symbol .
.It Fl n Ns Ar symbol
The same as
.Fl N
except it does not overwrite previous symbols.
.It Fl q
Be quiet about reporting.
.It Fl r Ns Op Ar rev
Check in revision
.Ar rev .
However, if
.Ar rev
is not specified the meaning is completely different \- override any
.Fl l
or
.Fl u
options, ensuring the default behaviour of releasing a lock and removing the
working file.
.It Fl s Ns Ar state
Sets the state of the deposited revision to the identifier
.Ar state .
The specified value may not contain a space character.
.It Fl t Ns Ar str
Change the descriptive text.
The argument
.Ar str
is interpreted as the name of a file containing
the descriptive text or,
if prefixed with a
.Sq - ,
the actual descriptive text itself.
If no argument is given,
this option is ignored
(for compatibility reasons).
.It Fl u Ns Op Ar rev
The same as
.Fl r ,
but also immediately checks out the deposited revision read-only.
Useful if you wish to read the working file after check-in.
.It Fl V
Print RCS's version number.
.It Fl w Ns Ar username
Uses
.Ar username
as the author field of the deposited revision.
.It Fl x Ns Ar suffixes
Specifies the suffixes for RCS files.
Suffixes should be separated by the
.Sq /
character.
.It Fl z Ns Ar tz
Specify the date output format in keyword substitution, and the
default time zone for
.Ar date
used in the
.Fl d
option.
.El
.Pp
.Ex -std ci
.Sh ENVIRONMENT
.Bl -tag -width RCSINIT
.It Ev RCSINIT
If set, this variable should contain a list of space-delimited options that
are prepended to the argument list.
.It Ev TMPDIR
When set, this variable specifies the directory where temporary files
are to be created.
The default is set to
.Pa /tmp .
.El
.Sh SEE ALSO
.Xr co 1 ,
.Xr ident 1 ,
.Xr rcs 1 ,
.Xr rcsclean 1 ,
.Xr rcsdiff 1 ,
.Xr rcsmerge 1 ,
.Xr rlog 1