Discussion
The log command can display the commit messages associated with the revisions of resources.
General Form
Get log information for a resource(s) that are in the local Working Copy.
Get log information for a resource in a repository.
Usage Example 1
Get the log information for all resources in the Working Copy.
————————————————————————
r42 | releasemgr | 2009-05-13 13:25:51 -0700 (Wed, 13 May 2009) | 1 line
Commit message
————————————————————————
r40 | cdickson | 2009-05-13 13:23:18 -0700 (Wed, 13 May 2009) | 1 line
Commit message
————————————————————————
. . .
————————————————————————
r2 | cdickson | 2009-04-18 11:34:29 -0700 (Sat, 18 Apr 2009) | 1 line
Initial files for new project
————————————————————————
r1 | cdickson | 2009-04-17 16:41:07 -0700 (Fri, 17 Apr 2009) | 1 line
Creating basic project structure
————————————————————————
$
Usage Example 2
Get the log information for the file File1.txt
that is in the current directory, which is part of a Working Copy.
————————————————————————
r42 | releasemgr | 2009-05-13 13:25:51 -0700 (Wed, 13 May 2009) | 1 line
Commit message
————————————————————————
r40 | cdickson | 2009-05-13 13:23:18 -0700 (Wed, 13 May 2009) | 1 line
Commit message
————————————————————————
…
————————————————————————
r4 | cdickson | 2009-04-20 16:59:55 -0700 (Mon, 20 Apr 2009) | 1 line
Feature X Implementation
————————————————————————
r2 | cdickson | 2009-04-18 11:34:29 -0700 (Sat, 18 Apr 2009) | 1 line
Initial files for new project
————————————————————————
$
Notice that there is no revision 1 for File1.txt
, because that resource was not changed as part of that revision.
Usage Example 3
Get the log information for the file File1.txt
that is in a repository but there is no local Working Copy.
————————————————————————
r42 | releasemgr | 2009-05-13 13:25:51 -0700 (Wed, 13 May 2009) | 1 line
Commit message
————————————————————————
r40 | cdickson | 2009-05-13 13:23:18 -0700 (Wed, 13 May 2009) | 1 line
Commit message
————————————————————————
…
————————————————————————
r4 | cdickson | 2009-04-20 16:59:55 -0700 (Mon, 20 Apr 2009) | 1 line
Feature X Implementation
————————————————————————
r2 | cdickson | 2009-04-18 11:34:29 -0700 (Sat, 18 Apr 2009) | 1 line
Initial files for new project
————————————————————————
$