[ –me | –use/r login-name ] [ –bra/nch branch-type-selector ]
[ [ –r/ecurse | –d/irectory | –a/ll | –avo/bs | –local ]
[ –pna/me ] pname ... | object-selector ... ]
The lshistory command lists event records in reverse chronological order, describing operations that have affected a VOB's data. There are several kinds of listing:
Default. If you do not specify any objects to be listed, lshistory displays events for the file system objects in the current working directory and events for the directory element itself. (This is equivalent to specifying “.” and “.@@” as the pname arguments.) The following sections describe how to produce a report on other file system objects, or on other kinds of objects.
—02-02T10:51 scd create version "msg.c@@/main/rel2_bugfix/1"
"Version for branch creation test"
–02-02T10:51 scd create version "msg.c@@/main/rel2_bugfix/0"
–02-02T10:51 scd create branch "msg.c@@/main/rel2_bugfix"
.
.
.
–02-01T16:17 scd create file element "msg.c@@"
Default report format for a hyperlink:
–02-08T11:25 scd create hyperlink "Merge@535@\tmp\scd_reach_hw"
Default report format for a storage pool:
–02-01T16:05 scd create pool "cdft"
"Predefined pool used to store cleartext versions."
The date-time argument can have any of the following formats:
Specify time in 24-hour format, relative to the local time zone. If you omit the time, the default value is 00:00:00. If you omit date, the default is today. If you omit the century, year, or a specific date, the most recent one is used. Specify UTC if you want to resolve the time to the same moment in time regardless of time zone. Use the plus (+) or minus (-) operator to specify a positive or negative offset to the UTC time. If you specify UTC without hour or minute offsets, Greenwich Mean Time (GMT) is used. (Dates before January 1, 1970 Universal Coordinated Time (UTC) are invalid.)
22-November-1999
sunday
yesterday.16:00
8-jun
13:00
today
9-Aug.10:00UTC
Use the following to specify one or more file system objects for a history listing.
The UNIX system and Linux examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the UNIX system and Linux shells or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.
cmd-context lshistory hello.c
2007-12-08T12:05 jackson import file element "hello.c@@"
2007-05-20T15:41 cory create version "hello.c@@/main/3" (REL2)
"include name, home dir, and time in message
KNOWN BUG: extra NL at end of time message"
2007-05-07T08:34 akp create version "hello.c@@/main/2" (REL1)
"ANSI compatibility: declare return value type, make explicit
return value also: clean up wording for The Boss"
2007-05-04T13:35 akp create version "hello.c@@/main/1"
"first implementation"
2007-05-04T13:35 akp create version "hello.c@@/main/0"
2007-05-04T13:35 akp create branch "hello.c@@/main"
2007-05-04T13:35 akp create file element "hello.c@@"
cmd-context lshistory –long lbtype:REL1
2007-01–08T12:05:43 Chuck Jackson (test user) (jackson.dvt@oxygen)
import label type "REL1"
2007-04-15T14:45:00 ross.devt@neptune
create label type "REL1"
"create label for Release 1 of "hello world" program"
cmd-context lshistory –branch rel2_bugfix
2007-03-24T12:45 jackson create version "msg.c@@/main/rel2_bugfix/0"
2007-03-24T12:45 jackson create branch "msg.c@@/main/rel2_bugfix"
"release 2 bugfixes"
2007-03-23T20:40 jackson create version "util.c@@/main/rel2_bugfix/1"
"fix bug: extra NL in time string"
2007-03-23T20:39 jackson create version "util.c@@/main/rel2_bugfix/0"
2007-03-23T20:39 jackson create branch "util.c@@/main/el2_bugfix"
cleartool find . –type f –exec "cleartool lshistory –last %CLEARCASE_XPN%" 2007-06-09T17:25 lee create version ".\file.txt@@\main\1" 2007-06-07T15:33 cty create version ".\tests.txt@@\main\33" 2007-05-17T23:44 ben create version ".\dir1\comp.c@@\main\bugfix\45" ...
cmd-context lsh vob:. 2007-12-10T08:01 gomez unlock versioned object base "/home/gomez/personal" 2007-12-09T15:48 gomez lock versioned object base "/home/gomez/personal" "Locked for all users." 2007-10-02T19:46 gomez create versioned object base "/home/gomez/personal" "gomez's personal vob"
cmd-context lshistory –graphical –nopreferences –branch v4_test hello.c