source: trunk/third/rcs/man/rlog.1 @ 9047

Revision 9047, 6.9 KB checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r9046, which included commits to RCS files with non-trunk default branches.
Line 
1.de Id
2.ds Rv \\$3
3.ds Dt \\$4
4..
5.Id $Id: rlog.1,v 1.1.1.1 1996-10-04 05:52:42 ghudson Exp $
6.ds i \&\s-1ISO\s0
7.ds r \&\s-1RCS\s0
8.ds u \&\s-1UTC\s0
9.if n .ds - \%--
10.if t .ds - \(em
11.TH RLOG 1 \*(Dt GNU
12.SH NAME
13rlog \- print log messages and other information about RCS files
14.SH SYNOPSIS
15.B rlog
16.RI [ " options " ] " file " .\|.\|.
17.SH DESCRIPTION
18.B rlog
19prints information about \*r files.
20.PP
21Pathnames matching an \*r suffix denote \*r files;
22all others denote working files.
23Names are paired as explained in
24.BR ci (1).
25.PP
26.B rlog
27prints the following information for each
28\*r file: \*r pathname, working pathname, head (i.e., the number
29of the latest revision on the trunk), default branch, access list, locks,
30symbolic names, suffix, total number of revisions,
31number of revisions selected for printing, and
32descriptive text.  This is followed by entries for the selected revisions in
33reverse chronological order for each branch.  For each revision,
34.B rlog
35prints revision number, author, date/time, state, number of
36lines added/deleted (with respect to the previous revision),
37locker of the revision (if any), and log message.
38All times are displayed in Coordinated Universal Time (\*u) by default;
39this can be overridden with
40.BR \-z .
41Without options,
42.B rlog
43prints complete information.
44The options below restrict this output.
45.nr n \w'\f3\-V\fP\f2n\fP'+2n-1/1n
46.ds n \nn
47.if \n(.g .if r an-tag-sep .ds n \w'\f3\-V\fP\f2n\fP'u+\n[an-tag-sep]u
48.TP \*n
49.B \-L
50Ignore \*r files that have no locks set.
51This is convenient in combination with
52.BR \-h ,
53.BR \-l ,
54and
55.BR \-R .
56.TP
57.B \-R
58Print only the name of the \*r file.
59This is convenient for translating a
60working pathname into an \*r pathname.
61.TP
62.B \-h
63Print only the \*r pathname, working pathname, head,
64default branch, access list, locks,
65symbolic names, and suffix.
66.TP
67.B \-t
68Print the same as
69.BR \-h ,
70plus the descriptive text.
71.TP
72.B \-N
73Do not print the symbolic names.
74.TP
75.B \-b
76Print information about the revisions on the default branch, normally
77the highest branch on the trunk.
78.TP
79.BI \-d "dates"
80Print information about revisions with a checkin date/time in the ranges given by
81the semicolon-separated list of
82.IR dates .
83A range of the form
84.IB d1 < d2
85or
86.IB d2 > d1
87selects the revisions that were deposited between
88.I d1
89and
90.I d2
91exclusive.
92A range of the form
93.BI < d
94or
95.IB d >
96selects
97all revisions earlier than
98.IR d .
99A range of the form
100.IB d <
101or
102.BI > d
103selects
104all revisions dated later than
105.IR d .
106If
107.B <
108or
109.B >
110is followed by
111.B =
112then the ranges are inclusive, not exclusive.
113A range of the form
114.I d
115selects the single, latest revision dated
116.I d
117or earlier.
118The date/time strings
119.IR d ,
120.IR d1 ,
121and
122.I d2
123are in the free format explained in
124.BR co (1).
125Quoting is normally necessary, especially for
126.B <
127and
128.BR > .
129Note that the separator is
130a semicolon.
131.TP
132.BR \-l [\f2lockers\fP]
133Print information about locked revisions only.
134In addition, if the comma-separated list
135.I lockers
136of login names is given,
137ignore all locks other than those held by the
138.IR lockers .
139For example,
140.B "rlog\ \-L\ \-R\ \-lwft\ RCS/*"
141prints the name of \*r files locked by the user
142.BR wft .
143.TP
144.BR \-r [\f2revisions\fP]
145prints information about revisions given in the comma-separated list
146.I revisions
147of revisions and ranges.
148A range
149.IB rev1 : rev2
150means revisions
151.I rev1
152to
153.I rev2
154on the same branch,
155.BI : rev
156means revisions from the beginning of the branch up to and including
157.IR rev ,
158and
159.IB rev :
160means revisions starting with
161.I rev
162to the end of the branch containing
163.IR rev .
164An argument that is a branch means all
165revisions on that branch.
166A range of branches means all revisions
167on the branches in that range.
168A branch followed by a
169.B .\&
170means the latest revision in that branch.
171A bare
172.B \-r
173with no
174.I revisions
175means the latest revision on the default branch, normally the trunk.
176.TP
177.BI \-s states
178prints information about revisions whose state attributes match one of the
179states given in the comma-separated list
180.IR states .
181.TP
182.BR \-w [\f2logins\fP]
183prints information about revisions checked in by users with
184login names appearing in the comma-separated list
185.IR logins .
186If
187.I logins
188is omitted, the user's login is assumed.
189.TP
190.B \-T
191This option has no effect;
192it is present for compatibility with other \*r commands.
193.TP
194.BI \-V
195Print \*r's version number.
196.TP
197.BI \-V n
198Emulate \*r version
199.I n
200when generating logs.
201See
202.BR co (1)
203for more.
204.TP
205.BI \-x "suffixes"
206Use
207.I suffixes
208to characterize \*r files.
209See
210.BR ci (1)
211for details.
212.PP
213.B rlog
214prints the intersection of the revisions selected with
215the options
216.BR \-d ,
217.BR \-l ,
218.BR \-s ,
219and
220.BR \-w ,
221intersected
222with the union of the revisions selected by
223.B \-b
224and
225.BR \-r .
226.TP
227.BI \-z zone
228specifies the date output format,
229and specifies the default time zone for
230.I date
231in the
232.BI \-d dates
233option.
234The
235.I zone
236should be empty, a numeric \*u offset, or the special string
237.B LT
238for local time.
239The default is an empty
240.IR zone ,
241which uses the traditional \*r format of \*u without any time zone indication
242and with slashes separating the parts of the date;
243otherwise, times are output in \*i 8601 format with time zone indication.
244For example, if local time is January 11, 1990, 8pm Pacific Standard Time,
245eight hours west of \*u,
246then the time is output as follows:
247.RS
248.LP
249.RS
250.nf
251.ta \w'\f3\-z+05:30\fP  'u +\w'\f31990-01-11 09:30:00+05:30\fP  'u
252.ne 4
253\f2option\fP    \f2time output\fP
254\f3\-z\fP       \f31990/01/12 04:00:00\fP       \f2(default)\fP
255\f3\-zLT\fP     \f31990-01-11 20:00:00\-08\fP
256\f3\-z+05:30\fP \f31990-01-12 09:30:00+05:30\fP
257.ta 4n +4n +4n +4n
258.fi
259.RE
260.SH EXAMPLES
261.LP
262.nf
263.B "    rlog  \-L  \-R  RCS/*"
264.B "    rlog  \-L  \-h  RCS/*"
265.B "    rlog  \-L  \-l  RCS/*"
266.B "    rlog  RCS/*"
267.fi
268.LP
269The first command prints the names of all \*r files in the subdirectory
270.B RCS
271that have locks.  The second command prints the headers of those files,
272and the third prints the headers plus the log messages of the locked revisions.
273The last command prints complete information.
274.SH ENVIRONMENT
275.TP
276.B \s-1RCSINIT\s0
277options prepended to the argument list, separated by spaces.
278See
279.BR ci (1)
280for details.
281.SH DIAGNOSTICS
282The exit status is zero if and only if all operations were successful.
283.SH IDENTIFICATION
284Author: Walter F. Tichy.
285.br
286Manual Page Revision: \*(Rv; Release Date: \*(Dt.
287.br
288Copyright \(co 1982, 1988, 1989 Walter F. Tichy.
289.br
290Copyright \(co 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert.
291.SH "SEE ALSO"
292ci(1), co(1), ident(1), rcs(1), rcsdiff(1), rcsintro(1), rcsmerge(1),
293rcsfile(5)
294.br
295Walter F. Tichy,
296\*r\*-A System for Version Control,
297.I "Software\*-Practice & Experience"
298.BR 15 ,
2997 (July 1985), 637-654.
300.SH BUGS
301The separator for revision ranges in the
302.B \-r
303option used to be
304.B \-
305instead of
306.BR : ,
307but this leads to confusion when symbolic names contain
308.BR \- .
309For backwards compatibility
310.B "rlog \-r"
311still supports the old
312.B \-
313separator, but it warns about this obsolete use.
314.br
Note: See TracBrowser for help on using the repository browser.