Lists event records for VOB-database objects
Product | Command Type |
---|---|
ClearCase | cleartool subcommand |
ClearCase LT | cleartool subcommand |
Attache | command |
Platform |
---|
UNIX |
Windows |
ClearCase and Attache on UNIX-Display event records graphically:
ClearCase and Attache on Windows-Display event records graphically:
ClearCase LT on Windows-Display event records graphically:
Display event records in the command window:
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:
File-system data history - Lists events concerning elements, branches, versions, and VOB links. This includes records for creation and deletion of objects, and records for attaching and removal of annotations: version labels, attributes, and hyperlinks.
Hyperlink history - Lists events concerning hyperlink objects: creation, deletion, attaching/removal of attributes.
Type history - Lists events concerning type objects that have been defined in the VOB.
Storage pool history - Lists events concerning the VOB's storage pools.
VOB history - Lists events concerning the VOB object itself. This includes the deletion of type objects and elements from the VOB.
VOB replica history - Lists events concerning a VOB replica, including synchronization updates.
Default: If you don't 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.
LISTING EVENT RECORDS GRAPHICALLY. Default: Lists event records in the command window.
IGNORING PREFERENCES SETTINGS. Default: Displays the history browser with your saved settings for filtering.
REPORT FORMAT. Default: Default report formats appear below.
Default report format for an element:
02-Feb.10:51 scd create version "msg.c@@/main/rel2_bugfix/1"
"Version for branch creation test"
02-Feb.10:51 scd create version "msg.c@@/main/rel2_bugfix/0"
02-Feb.10:51 scd create branch "msg.c@@/main/rel2_bugfix"
.
.
.
01-Feb.16:17 scd create file element "msg.c@@"
Default report format for a hyperlink:
08-Feb.11:25 scd create hyperlink "Merge@535@\tmp\scd_reach_hw"
Default report format for a storage pool:
01-Feb.16:05 scd create pool "cdft"
"Predefined pool used to store cleartext versions."
SELECTING EVENTS FOR THE SPECIFIED OBJECTS. Default: The report includes all the major events in the entire histories of the selected objects.
NOTE: When using one or more of these options with lshistory -graphical, you must precede them with the -nopreferences option (the -branch option also has this requirement).
checkout version
events (the ones listed by the lscheckout command).FILE SYSTEM DATA HISTORY. Use the following to specify one or more file-system objects for a history listing.
type-name | Name of the branch type |
vob-selector | vob:pname-in-vob | |
pname-in-vob can be the pathname of the VOB-tag (whether or not the VOB is mounted) or of any file-system objects within the VOB (if the VOB is mounted). It cannot be the pathname of the VOB storage directory. | ||
attribute-type-selector | attype:type-name[@vob-selector] | |
branch-type-selector | brtype:type-name[@vob-selector] | |
element-type-selector | eltype:type-name[@vob-selector] | |
hyperlink-type-selector | hltype:type-name[@vob-selector] | |
label-type-selector | lbtype:type-name[@vob-selector] | |
trigger-type-selector | trtype:type-name[@vob-selector] | |
pool-selector | pool:pool-name[@vob-selector] | |
hlink-selector | hlink:hlink-id[@vob-selector] | |
oid-obj-selector | oid:object-oid[@vob-selector] | |
The following object selector is valid only if you use MultiSite: | ||
replica-selector | replica:replica-name[@vob-selector] |
The UNIX 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 shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.
List the event history of an element.
cmd-context lshistory hello.c
08-Dec.12:05 jackson import file element "hello.c@@"
20-May.15: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"
07-May.08: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"
04-May.13:35 akp create version "hello.c@@/main/1"
"first implementation"
04-May.13:35 akp create version "hello.c@@/main/0"
04-May.13:35 akp create branch "hello.c@@/main"
04-May.13:35 akp create file element "hello.c@@"
List the history of a label type, using the long format.
cmd-context lshistory -long lbtype:REL1
08-Jan-99.12:05:43 Chuck Jackson (test user) (jackson.dvt@oxygen)
import label type "REL1"
15-Apr-99.14:45:00 ross.devt@neptune
create label type "REL1"
"create label for Release 1 of "hello world" program"
For all elements in the current working directory, list events involving the rel2_bugfix branch.
cmd-context lshistory -branch rel2_bugfix
24-Mar.12:45 jackson create version "msg.c@@/main/rel2_bugfix/0"
24-Mar.12:45 jackson create branch "msg.c@@/main/rel2_bugfix"
"release 2 bugfixes"
23-Mar.20:40 jackson create version "util.c@@/main/rel2_bugfix/1"
"fix bug: extra NL in time string"
23-Mar.20:39 jackson create version "util.c@@/main/rel2_bugfix/0"
23-Mar.20:39 jackson create branch "util.c@@/main/el2_bugfix"
List the latest event for every file element in or below the current directory.
cleartool find . -type f -exec "cleartool lshistory -last %CLEARCASE_XPN%"
09-Jun.17:25 lee create version ".\file.txt@@\main\1"
07-Jun.15:33 cty create version ".\tests.txt@@\main\33"
17-May.23:44 ben create version ".\dir1\comp.c@@\main\bugfix\45"
...
List the history of the VOB object itself for the current VOB.
cmd-context lsh vob:.
10-Dec.08:01 gomez unlock versioned object base
"/home/gomez/personal"
09-Dec.15:48 gomez lock versioned object base "/home/gomez/personal"
"Locked for all users."
02-Oct.19:46 gomez create versioned object base
"/home/gomez/personal"
"gomez's personal vob"
Start a history browser, overriding the saved filtering settings and displaying events for the hello.c element that are related to the v4_test branch.
cmd-context lshistory -graphical -nopreferences -branch v4_test hello.c
chevent, describe, find, events_ccase, fmt_ccase, lscheckout, lspool, lstype, lsvtree, xclearcase
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |