Search code examples
javajenkinsclearcase

Need to find a branch with out going into the vobs


Hey every one is there any way that I can find a branch without in the Vob directory For example:

Cleartool find lstype -kind brtype | grep branch name 

We can find only we are in the Vob directory or else it throws me an error:

"unable to determine vob for pathname"

So any one help me in this finding branch command without going into Vob directory

Thanks


Solution

  • Not exactly: you need to have the vob in which the brtype has been defined.

    That means you don't have to go to (cd) a vob directory.

    But you need to add to your command the anme of the vob tag, using cleartool lstype:

    cleartool lstype -kind brtype -invob /avobtag
    

    Note that "cleartool find lstype" would not work anyway (vob tag or not)

    cleartool find needs a "pname", that is a file or directory element, which involves being within a view/vobtag.
    But you can use cleartool lstype without having to use a view.
    Not "cleartool find lstype": the combination of the two command would not make sense.