einpoklum
einpoklum

Reputation: 131666

Quickly checking whether a branch type exists

With ClearCase, you can check whether a branch type exists by executing:

cleartool lstype -kind brtype -invob my_vob

... but - this tends to take a lot of time (server load? many branch types?). Is there a faster way to check whether a specific branch type exists or not?

Upvotes: 1

Views: 286

Answers (2)

Brian Cowan
Brian Cowan

Reputation: 1073

Actually, you can get what you want using lstype too. Suppose you're interested in a branch named my_branch and your VOB is located at /path/to/my_vob:

cleartool lstype brtype:my_branch@/path/to/my_vob

If you need to know if a global type is instantiated, use:

cleartool lstype -local brtype:my_branch@/path/to/my_vob

Upvotes: 1

VonC
VonC

Reputation: 1325155

You can try, to see if this is quicker, a cleartool describe

cleartool describe brtype:aBranch@/vobs/avob
# or, for Windows
cleartool describe brtype:aBranch@\avob

The idea is: if it fails, the branch does not exist.

Upvotes: 1

Related Questions