Changes the comment string in existing event record
ClearCase (cleartool subcommand), Attache (command)
The chevent command modifies or replaces the comment string in one or more existing event records. It is useful for correcting typing errors, and for including information that was omitted in the original comment.
There are several ways to specify an event record whose comment you want to change:
See the events_ccase reference page for details on the operations that cause event records to be created, and how event records are attached to objects. See also the comments reference page.
Permissions Checking: To modify an event's comment, you must be the user associated with the event, the object owner, the VOB owner, or a member of the ClearCase group. See the permissions reference page.
Locks: Even if you have permission to execute this command, locks cause it to fail as follows:
| Object | Locks that Prevent Changing the Object's Events |
|---|---|
VOB | VOB |
Pool | VOB, pool |
Element | VOB, element type |
Type | VOB, type |
Branch, Version | VOB, element type, element, branch type, branch |
Hyperlink | VOB, hyperlink type |
See also the permissions reference page.
SPECIFYING THE COMMENT CHANGE. Default: For each object or event, chevent prompts for a comment string to apply to the corresponding event record.
SPECIFYING HOW TO CHANGE THE COMMENT. Default: The new comment is appended to the existing one.
SPECIFYING EVENT RECORDS TO BE CHANGED. You can indicate which event record is to be changed by specifying a file-system object, a non-file-system object, or a numerical event-ID. Default: None.
checkout version comment. You can use any of the following to specify the checked-out version:hello.h |
|
hello.h@@\main\rel2_bugfix\CHECKEDOUT | (extended pathname to checked-out "placeholder" version) |
hello.h@@\main\rel2_bugfix\CHECKEDOUT.465 | (placeholder version has unique numeric suffix) |
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 object 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] | |
Examples including 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 command interpreter prompt. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.
cmd-context chevent hello.c@@
Comments for "hello.c":
Main module of greeting program.
.
Modified event of file element "hello.c".
cmd-context describe hello.c@@
file element "hello.c@@"
created 04-Dec-98.14:38:26 by anne.user
"Main module of greeting program"
element type: text_file
source pool: p1 cleartext pool: pc1
cmd-context lscheckout bye.c
13-May.13:58 anne checkout version "bye.c" from \main\11 (reserved)
"Improve error handling."
cmd-context chevent -insert -c "Fix bug #2493:" bye.c
Modified event of version "bye.c".
cmd-context lscheckout bye.c
13-May.13:58 anne checkout version "bye.c" from \main\11 (reserved)
"Fix bug #2493:
Improve error handling."
cmd-context chevent -append brtype:v1_bugfix
Comments for "v1_bugfix":
Branches should sprout from the version labeled 'V1'
.
Modified event of branch type "v1_bugfix".
cmd-context lstype brtype:v1_bugfix
28-Mar.16:26 ali branch type "v1_bugfix"
"Branch for fixes to version 1.
Branches should sprout from the version labeled 'V1'"
cmd-context chevent -replace -nc welcome.c@@\main\v1_bugfix
Modified event of branch "welcome.c".
cmd-context lshistory -long -eventid util.c
event 45678:
21-Mar-99.14:45:20 Anne Duvo (anne@neptune)
destroy sub-branch "bugfix" of branch "util.c@@\main"
"Destroyed branch "\main\bugfix"."
.
.
.
cmd-context chevent -c "bugfix merge completed." -append -event 45678
Modified event "45678".
cmd-context lshistory -long -eventid util.c
event 45678:
21-Mar-99.14:45:20 Anne Duvo (anne@neptune)
destroy sub-branch "bugfix" of branch "util.c@@\main"
"Destroyed branch "\main\bugfix".
"bugfix merge completed."
.
.
.
events_ccase, lock, lshistory, mktrtype, vob_scrubber
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved. |