BSD 4_3_Net_2 development
[unix-history] / usr / src / contrib / rcs / man / rlog.1
CommitLineData
ad78b3ad
C
1.TH RLOG 1L "" "Purdue University"
2.SH NAME
3rlog \- print log messages and other information about RCS files
4.SH SYNOPSIS
5.B rlog
6[ options ]
7file ...
8.SH DESCRIPTION
9.I Rlog
10prints information about RCS files.
11Files ending in `,v' are RCS files, all others are working files. If
12a working file is given, \fIrlog\fR tries to find the corresponding
13RCS file first in directory ./RCS and then in the current directory,
14as explained in
15.IR co (1L).
16.PP
17\fIRlog\fR prints the following information for each
18RCS file: RCS file name, working file name, head (i.e., the number
19of the latest revision on the trunk), default branch, access list, locks,
20symbolic names, suffix, total number of revisions,
21number of revisions selected for printing, and
22descriptive text. This is followed by entries for the selected revisions in
23reverse chronological order for each branch. For each revision,
24\fIrlog\fR prints revision number, author, date/time, state, number of
25lines added/deleted (with respect to the previous revision),
26locker of the revision (if any), and log message.
27Without options, \fIrlog\fR prints complete information.
28The options below restrict this output.
29.TP 10
30.B \-L
31ignores RCS files that have no locks set; convenient in combination with
32\fB\-R\fR, \fB\-h\fR, or \fB\-l\fR.
33.TP 10
34.B \-R
35only prints the name of the RCS file; convenient for translating a
36working file name into an RCS file name.
37.TP 10
38.B \-h
39prints only RCS file name, working file name, head,
40default branch, access list, locks,
41symbolic names, and suffix.
42.TP 10
43.B \-t
44prints the same as \fB\-h\fR, plus the descriptive text.
45.TP 10
46.B \-b
47prints information about the revisions on the default branch (normally
48the highest branch on the trunk).
49.TP 10
50.BI \-d "dates"
51prints information about revisions with a checkin date/time in the ranges given by
52the semicolon-separated list of \fIdates\fR.
53A range of the form \fId1<d2\fR or \fId2>d1\fR
54selects the revisions that were deposited between
55\fId1\fR and \fId2\fR, (inclusive).
56A range of the form \fI<d\fR or \fId>\fR selects
57all revisions dated
58\fId\fR or earlier.
59A range of the form \fId<\fR or \fI>d\fR selects
60all revisions dated \fId\fR or later.
61A range of the form \fId\fR selects the single, latest revision dated \fId\fR or
62earlier.
63The date/time strings \fId, d1, \fRand \fId2\fR
64are in the free format explained in
65.IR co (1L).
66Quoting is normally necessary, especially for \fI<\fR and \fI>\fR. Note that the separator is
67a semicolon.
68.TP 10
69.B \-l\fR[\fIlockers\fR]
70prints information about locked revisions.
71If the comma-separated list \fIlockers\fR of login names is given,
72only the revisions locked by the given login names are printed.
73If the list is omitted, all locked revisions are printed.
74.TP 10
75.BI \-r "revisions"
76prints information about revisions given in the comma-separated list
77\fIrevisions\fR of revisions and ranges. A range \fIrev1-rev2\fR means revisions
78\fIrev1\fR to \fIrev2\fR on the same branch, \fI-rev\fR means revisions
79from the beginning of the branch up to and including \fIrev\fR,
80and \fIrev-\fR means revisions starting with \fIrev\fR to the end of the
81branch containing \fIrev\fR. An argument that is a branch means all
82revisions on that branch. A range of branches means all revisions
83on the branches in that range.
84.TP 10
85.BI \-s "states"
86prints information about revisions whose state attributes match one of the
87states given in the comma-separated list \fIstates\fR.
88.TP 10
89.B \-w\fR[\fIlogins\fR]
90prints information about revisions checked in by users with
91login names appearing in the comma-separated list \fIlogins\fR.
92If \fIlogins\fR is omitted, the user's login is assumed.
93.PP
94\fIRlog\fR prints the intersection of the revisions selected with
95the options \fB\-d\fR, \fB\-l\fR, \fB\-s\fR, \fB\-w\fR, intersected
96with the union of the revisions selected by \fB\-b\fR and \fB\-r\fR.
97.SH EXAMPLES
98.nf
99.sp
100 rlog \-L \-R RCS/*,v
101 rlog \-L \-h RCS/*,v
102 rlog \-L \-l RCS/*,v
103 rlog RCS/*,v
104.sp
105.fi
106The first command prints the names of all RCS files in the subdirectory `RCS'
107which have locks. The second command prints the headers of those files,
108and the third prints the headers plus the log messages of the locked revisions.
109The last command prints complete information.
110.SH DIAGNOSTICS
111The exit status always refers to the last RCS file operated upon,
112and is 0 if the operation was successful, 1 otherwise.
113.SH IDENTIFICATION
114.de VL
115\\$2
116..
117Author: Walter F. Tichy,
118Purdue University, West Lafayette, IN, 47907.
119.sp 0
120Revision Number:
121.VL $Revision: 1.3 $
122; Release Date:
123.VL $Date: 89/05/02 11:19:20 $
124\&.
125.sp 0
126Copyright \(co 1982, 1988, 1989 by Walter F. Tichy.
127.SH SEE ALSO
128ci(1L), co(1L), ident(1L), rcs(1L), rcsdiff(1L), rcsintro(1L), rcsmerge(1L),
129rcsfile(5L)
130.br
131Walter F. Tichy, "Design, Implementation, and Evaluation of a Revision Control
132System," in \fIProceedings of the 6th International Conference on Software
133Engineering\fR, IEEE, Tokyo, Sept. 1982.