|
Lines 582-587
Link Here
|
| 582 |
|
582 |
|
| 583 |
<!-- XXX needs more details --> |
583 |
<!-- XXX needs more details --> |
| 584 |
<screen>&prompt.user; <userinput>cvs log shazam</userinput></screen> |
584 |
<screen>&prompt.user; <userinput>cvs log shazam</userinput></screen> |
|
|
585 |
|
| 586 |
<para>If <filename>shazam</filename> is a file, this will print a |
| 587 |
<emphasis>header</emphasis> with information about this file, such |
| 588 |
as where in the repository this file is stored, which revision is |
| 589 |
the <literal>HEAD</literal> for this file, what branches this file |
| 590 |
is in, and any tags that are valid for this file. Then, for each |
| 591 |
revision of this file, a log message is printed. This includes |
| 592 |
the date and time of the commit, who did the commit, how many lines |
| 593 |
were added and/or deleted, and finally the log message that the |
| 594 |
committer who did the change wrote.</para> |
| 595 |
|
| 596 |
<para>If <filename>shazam</filename> is a directory, then the log |
| 597 |
information described above is printed for each file in the |
| 598 |
directory in turn. Unless you give the <option>-l</option> to |
| 599 |
<literal>log</literal>, the log for all subdirectories of |
| 600 |
<filename>shazam</filename> is printed too, in a recursive |
| 601 |
manner.</para> |
| 602 |
|
| 603 |
<para>Use the <literal>log</literal> command to view the history of |
| 604 |
one or more files, as it's stored in the CVS repository. You can |
| 605 |
even use it to view the log message of a specific revision, if you |
| 606 |
add the <option>-r<replaceable>rev</replaceable></option> to the |
| 607 |
<literal>log</literal> command:</para> |
| 608 |
|
| 609 |
<screen>&prompt.user; <userinput>cvs log -r1.2 shazam</userinput></screen> |
| 610 |
|
| 611 |
<para>This will print only the log message for revision |
| 612 |
<literal>1.2</literal> of file <filename>shazam</filename> if it is |
| 613 |
a file, or the log message for revision <literal>1.2</literal> of |
| 614 |
each file under <filename>shazam</filename> if it is a |
| 615 |
directory.</para> |
| 585 |
</listitem> |
616 |
</listitem> |
| 586 |
|
617 |
|
| 587 |
<listitem> |
618 |
<listitem> |