nowox
nowox

Reputation: 29116

ClearCase: How to get when a LABEL was created?

I would like to get the date when a label was created.

The command below does list the labels, but all of them. I would like to only get the date associated with a specific label.

cleartool lstype -kind lbtype -invob $(cygpath -wa $VIEWDIR)

And if possible without extensive use of grep or sed to extract the information.

Upvotes: 1

Views: 2334

Answers (2)

VonC
VonC

Reputation: 1327324

For a given lbtype, you can use the cleartool describe command:

cleartool descr lbtype:MYLABEL@/vob/myvob

Combined with fmt_ccase, you can limit to only the date

cleartool descr  -fmt "%d" lbtype:MYLABEL@/vob/myvob

This gives the creation date of the label type (not when a label was set to a version)

Upvotes: 1

Tamir Gefen
Tamir Gefen

Reputation: 1126

cleartool desc -fmt %d LABEL@\VOB

Upvotes: -2

Related Questions