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 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331
|
.de Id
.ds Rv \\$3
.ds Dt \\$4
..
.Id $Id: blame.1,v 1.3 2005/06/30 10:58:42 foonly Exp $
.ds b \fBblame\fP
.ds i \&\s-1ISO\s0
.ds r \&\s-1RCS\s0
.ds u \&\s-1UTC\s0
.TH BLAME 1 \*(Dt "" ""
.SH NAME
\*b \- annotate RCS files
.SH SYNOPSIS
.B \*b
.RI [ options ] " file " .\|.\|.
.SH DESCRIPTION
.B \*b
outputs an annotated revision from each \*r file.
An annotated RCS file describes the
revision and date in which each line was added to the file, and the
author of each line.
.PP
Pathnames matching an \*r suffix denote \*r files;
all others denote working files.
Names are paired as explained in
.BR ci (1).
.PP
A revision is selected by options for revision or branch number,
checkin date/time, author, or state.
When the selection options
are applied in combination,
.B \*b
retrieves the latest revision
that satisfies all of them.
If none of the selection options
is specified,
.B \*b
retrieves the latest revision
on the default branch (normally the trunk, see the
.B \-b
option of
.BR rcs (1)).
The options
.BR "\-d " ( \-\^\-date ),
.BR "\-s " ( \-\^\-state ),
and
.BR "\-w " ( \-\^\-author )
retrieve from a single branch, the
.I selected
branch,
which is specified by
.BR "\-r " ( \-\-revision ),
or the default branch.
.PP
.B \*b
always performs keyword substitution (see
.SM "KEYWORD SUBSTITUTION"
in
.BR co (1)).
.SH OPTIONS
.TP
.BR \-r ", " \-\^\-revision "[=\fIrev\fP]"
Retrieves the latest revision whose number is less than or equal to
.IR rev .
If
.I rev
indicates a branch rather than a revision,
the latest revision on that branch is retrieved.
If
.I rev
is omitted, the latest revision on the default branch
(see the
.B \-b
option of
.BR rcs (1))
is annotated.
If
.I rev
is
.BR $ ,
.B \*b
determines the revision number from keyword values in the working file.
Otherwise, a revision is composed of one or more numeric or symbolic fields
separated by periods.
If
.I rev
begins with a period,
then the default branch (normally the trunk) is prepended to it.
If
.I rev
is a branch number followed by a period,
then the latest revision on that branch is used.
The numeric equivalent of a symbolic field
is specified with the
.B \-n
option of the commands
.BR ci (1)
and
.BR rcs (1).
.TP
.BR \-kkv ", " \-\^\-expand "=kv"
Generate keyword strings using the default form, e.g.\&
.B "$\&Revision: \*(Rv $"
for the
.B Revision
keyword.
This is the default.
.TP
.BR \-kkvl ", " \-\^\-expand "=kvl"
Like
.BR \-kkv ,
except that a locker's name is inserted into the value of the
.BR Header ,
.BR Id ,
and
.B Locker
keyword strings
if the given revision is currently locked.
.TP
.BR \-kk ", " \-\^\-expand "=k"
Generate only keyword names in keyword strings; omit their values.
See
.SM "KEYWORD SUBSTITUTION"
in
.BR co (1).
For example, for the
.B Revision
keyword, generate the string
.B $\&Revision$
instead of
.BR "$\&Revision: \*(Rv $" .
Log messages are inserted after
.B $\&Log$
keywords even if
this option
is specified.
.TP
.BR \-ko ", " \-\^\-expand "=o"
Generate the old keyword string,
present in the working file just before it was checked in.
For example, for the
.B Revision
keyword, generate the string
.B "$\&Revision: 1.1 $"
instead of
.B "$\&Revision: \*(Rv $"
if that is how the string appeared when the file was checked in.
.TP
.BR \-kb ", " \-\^\-expand "=b"
Generate a binary image of the old keyword string.
This acts like
.BR \-ko ,
except it performs all working file input and output in binary mode.
This makes little difference on Posix and Unix hosts.
.TP
.BR \-kv ", " \-\^\-expand "=v"
Generate only keyword values for keyword strings.
For example, for the
.B Revision
keyword, generate the string
.B \*(Rv
instead of
.BR "$\&Revision: \*(Rv $" .
.TP
.BR \-d ", " \-\^\-date "=\fIdate\fP"
Retrieves the latest revision on the selected branch whose checkin date/time is
less than or equal to
.IR date .
The date and time can be given in free format.
The time zone
.B LT
stands for local time;
other common time zone names are understood.
For example, the following
.IR date s
are equivalent
if local time is January 11, 1990, 8pm Pacific Standard Time,
eight hours west of Coordinated Universal Time (\*u):
.RS
.LP
.RS
.nf
.ta \w'\f3Thu, 11 Jan 1990 20:00:00 \-0800\fP 'u
.ne 10
\f38:00 pm lt\fP
\f34:00 AM, Jan. 12, 1990\fP default is \*u
\f31990-01-12 04:00:00+00\fP \*i 8601 (\*u)
\f31990-01-11 20:00:00\-08\fP \*i 8601 (local time)
\f31990/01/12 04:00:00\fP traditional \*r format
\f3Thu Jan 11 20:00:00 1990 LT\fP output of \f3ctime\fP(3) + \f3LT\fP
\f3Thu Jan 11 20:00:00 PST 1990\fP output of \f3date\fP(1)
\f3Fri Jan 12 04:00:00 GMT 1990\fP
\f3Thu, 11 Jan 1990 20:00:00 \-0800\fP Internet RFC 822
\f312-January-1990, 04:00 WET\fP
.ta 4n +4n +4n +4n
.fi
.RE
.LP
Most fields in the date and time can be defaulted.
The default time zone is normally \*u, but this can be overridden by the
.B \-z
option.
The other defaults are determined in the order year, month, day,
hour, minute, and second (most to least significant). At least one of these
fields must be provided. For omitted fields that are of higher significance
than the highest provided field, the time zone's current values are assumed.
For all other omitted fields,
the lowest possible values are assumed.
For example, without
.BR \-z ,
the date
.B "20, 10:30"
defaults to
10:30:00 \*u of the 20th of the \*u time zone's current month and year.
The date/time must be quoted if it contains spaces.
.RE
.TP
.BR \-s ", " \-\^\-state "=\fIstate\fP"
Retrieves the latest revision on the selected branch whose state is set to
.IR state .
.TP
.BR \-w ", " \-\^\-login "[=\fIlogin\fP]"
Retrieves the latest revision on the selected branch which was checked in
by the user with login name
.IR login .
If the argument
.I login
is
omitted, the caller's login is assumed.
.TP
.BR \-V ", " \-\^\-version "[=\fIver\fP]"
If no argument is supplied, print \*b's version number, and the version of
\*r it emulates by default. Otherwise emulate the specified version.
See
.BR co (1)
for details.
.TP
.BR \-x ", " \-\^\-suffixes "=\fIsuffixes\fP"
Use
.I suffixes
to characterize \*r files.
See
.BR ci (1)
for details.
.TP
.BR \-z ", " \-\^\-zone "=\fIzone\fP"
Specifies the date output format in keyword substitution,
and specifies the default time zone for
.I date
in the
.BI \-d date
option.
The
.I zone
should be empty, a numeric \*u offset, or the special string
.B LT
for local time.
The default is an empty
.IR zone ,
which uses the traditional \*r format of \*u without any time zone indication
and with slashes separating the parts of the date;
otherwise, times are output in \*i 8601 format with time zone indication.
For example, if local time is January 11, 1990, 8pm Pacific Standard Time,
eight hours west of \*u,
then the time is output as follows:
.RS
.LP
.RS
.nf
.ta \w'\f3\-z+05:30\fP 'u +\w'\f31990-01-11 09:30:00+05:30\fP 'u
.ne 4
\f2option\fP \f2time output\fP
\f3\-z\fP \f31990/01/12 04:00:00\fP \f2(default)\fP
\f3\-zLT\fP \f31990-01-11 20:00:00\-08\fP
\f3\-z+05:30\fP \f31990-01-12 09:30:00+05:30\fP
.ta 4n +4n +4n +4n
.fi
.RE
.RE
.SH "KEYWORD SUBSTITUION"
Strings of the form
.BI $ keyword $
and
.BI $ keyword : .\|.\|. $
embedded in
the text are replaced
with strings of the form
.BI $ keyword : value $
as described in
.BR co (1).
.SH FILES
\*b
never changes an \*r or working file.
It uses the effective user for all accesses,
and it does not even read the working file unless a revision number of
.B $
is specified.
.SH ENVIRONMENT
.TP
.B \s-1RCSINIT\s0
Options prepended to the argument list, separated by spaces.
See
.BR ci (1)
for details.
.SH DIAGNOSTICS
The working pathname and a separator line is written to the diagnostic output.
The exit status is zero if and only if all operations were successful.
.SH EXAMPLES
One day, there will be a whole bunch of useful examples here.
.SH SEE ALSO
.BR rcsintro (1),
.BR ci (1),
.BR co (1),
.BR ctime (3),
.BR date (1),
.BR rcs (1),
.BR rcsfile (5)
.SH AUTHOR
Michael Chapman <foonly@users.sourceforge.net>
.PP
Portions of this manual page are from
.BR ci (1)
and
.BR co (1)
by Walter F. Tichy and Paul Eggert.
.SH "COPYRIGHT AND LICENSE"
\*b is copyright \(co 2004, 2005 Michael Chapman.
.PP
\*b is released under the terms and conditions of the
\s-1GNU\s0 General Public License version 2.
Please read the \s-1COPYING\s0 file carefully.
|