Tuesday, March 18, 2008

The Log Command

The log command displays log messages for files. Log messages are specified using the editor invoked after commit or using the –m command option. This command displays all the revisions made to a file, including revision number, author, Greenwich Mean Time (GMT) timestamp, number of lines changed, and date on which the changes were made. Every log message associated with a revision is also displayed.

For example, to view the log message for my_project, the syntax is:

$ cvs log –l my_project

Note

The –l option generates logs only for the my_project directory, instead of doing it recursively, which is the default behavior.

various options that you can use with the log command:
Option Description
-b Prints information about revisions on the default branch.
-d Prints information about revisions with a checkin date and time.
-h Prints names of the Revision Control System (RCS) file, the file in the working directory, head, branch, locks, symbolic names, access lists, and suffixes.
-R Prints only the name of the RCS file.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home