chevent

Changes the comment string in an event record

APPLICABILITY


Product

Command Type

ClearCase


cleartool subcommand


ClearCase LT


cleartool subcommand


Attache


command


Platform

UNIX


Windows

SYNOPSIS

chevent [ -c·omment comment | -cfi·le comment-file-pname |-cq·uery | -cqe·ach | -nc·omment ]

[ -app·end | -ins·ert | -rep·lace ]
{ -eve·nt [ -inv·ob vob-selector ] event-ID ...
| [ -pna·me ] pname ...
| object-selector ...
}

DESCRIPTION

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.

RESTRICTIONS

Identities: You must have one of the following identities:

Locks: The following restrictions apply:

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

Mastership: (Replicated VOBs only) For a version, your current replica must master the branch containing the version. For any other object, your current replica must master the object.

OPTIONS AND ARGUMENTS

SPECIFYING THE COMMENT CHANGE.  Default: For each object or event, chevent prompts for a comment string to apply to the corresponding event record.

-c·omment comment

Specifies a character string to replace the existing comment or be added to it.
-cfi·le comment-file-pname

Specifies a text file whose contents are to be placed in the event record.
NOTE: A final newline character in this file is included in the comment.
-cq·uery

Prompts for one comment, which will be used to update all of the event records.
-cqe·ach

Same as default-prompts for a separate comment string for each object or event ID.
-nc·omment

No comment. When combined with -replace, this option removes the existing comment. Otherwise, it nullifies the effect of chevent.

SPECIFYING HOW TO CHANGE THE COMMENT.  Default: The new comment is appended to the existing one. On UNIX systems, it is preceded by a newline character.

-app·end

Same as default.
-ins·ert

The new comment is inserted before the existing one. On UNIX systems, the new comment is followed by a newline character.
-rep·lace

The existing comment is discarded; the new comment replaces it.

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.

-eve·nt [ -inv·ob vob-selector ] event-ID ...

Specifies one or more events by their numeric event-IDs. The -event keyword can appear anywhere an option is valid; the event-ID arguments must appear at the end of the command (that is, after all options). By default, event-IDs specify events in the VOB containing the current working directory; use -invob vob-selector to specify another VOB.
To determine the event-ID of an event, use lshistory -eventid.
[ -pna·me ] pname ...
A standard pathname or VOB-extended pathname, indicating the creation event record for an element, branch, or version object. The standard pathname of an element specifies the version in your view. The -pname option is required only if the pathname looks like an object-selector (for example, an element named pool:one).
Specifying a checked-out version changes its checkout version comment. You can use any of the following to specify the checked-out version:

hello.h

(standard pathname)

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)

object-selector ...

One or more object-selectors, in any of these forms:

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

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.

SEE ALSO

events_ccase, lock, lshistory, mktrtype, vob_scrubber