Question

Does anybody know why comments that were applied to a chact (or any other command on an activity) don't show up when I do lshistory? Is this the wrong command to get comments?

I just want to see the comments applied to an activity. For instance, I tried the following:

ct chactivity -c "My new comment" -headline "Test headline" activity:...

The headline changed just fine on the activity, but when I do the following:

ct lshistory -l activity:...

I only ever see one event - the "create activity" event

Am I looking in the wrong place for comments? Or is it possible this kind of commenting is turned off in ClearCase somehow?

Thanks!

Was it helpful?

Solution

If you look in event_ccase CC7.x (even in 8.x), you will see that cleartool chact itself does not generate a minor event.

However, changing the comment of any object does.

When you supply comments to a ClearCase command, your comment becomes part of an event record.

Some cleartool commands create a comment even if you do not provide one.
These generated comments describe the operation in general terms, such as “modify metadata” or “create directory element.”
User comments, if any, are appended to generated comments.

It is, as you have noted, a "minor" event, visible with cleartool lshistory -minor.

OTHER TIPS

Apparently you have to specify -minor in the lshistory and then all of the events (and their associated comments) show up.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top