Tuesday, March 18, 2008

The history Command

The history command displays information about files and end users. CVS maintains a history file, where it logs the use of commands, such as checkout, commit, release, rtag, and update. These commands display the information stored in the history file.The history command cannot function without options. It also requires partial file names in the form of substrings, instead of complete file names. It matches all file names containing the given substring and displays information pertaining to them. For example, to view the data pertaining to the my_project module, the syntax is:
$ cvs history –m my_project
various options that you can use with the history command:
Option Description

-c Reports when each times the commit command are used.
-e Displays all record types.
-m Displays report of a specific module.
-o Displays report of checked-out modules.
-T Displays report on all tags.
-l Displays data pertaining to the most recent event in a project.
-n Displays data pertaining to the most recent event. This is different from events happening within a module. For example, if a file is updated within a module, the file is affected.
-p Displays data pertaining to a given directory within a repository.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home