Fredrik
Fredrik

Reputation: 10646

ClearCase: Describe of vobroot fails in windows, gives "null meta type" in Linux

Running this command gives an error in Windows:

H:\>cleartool describe -fmt "%[object_kind]p" "M:\\my_cc_view\\"

it gives:

cleartool: Error: Unable to access "M:\\my_cc_view\": Input/output error.

Running the same command on a vob works:

H:\>cleartool describe -fmt "%[object_kind]p" "M:\\my_cc_view\\vob1"
directory version
H:\>cleartool describe -fmt "%[object_kind]p" "M:\\my_cc_view\\vob2"
directory version

In Linux it gives:

; cleartool describe -fmt "%[object_kind]p" /view/my_cc_view/vobs/
; null meta type**

I've been unable to find if this is a bug in clearcase, the closest one I could find was this.

It seems that running a describe on the the vobroot element is is a special case we must handle separately, is there a way to check if the path is the root?

Upvotes: 1

Views: 1038

Answers (2)

VonC
VonC

Reputation: 1323593

cleartool: Error: Unable to access "M:\my_cc_view\": Input/output error.

Not sure why you get two '\' here: with one, it works on my Windows session, but it won't give you much:

ct descr -fmt "%[object_kind]p" "m:\my_cc_view"
**null meta type**

A view hasn't really an "object type". And it has no "object-selector" like "view:"

To see all characteristic of a view, type:

cleartool lsview -l -full -pro my_cc_view 

(using the tag of the view).

Upvotes: 1

cjp
cjp

Reputation: 26

Views, vobs, label types, branch types (etc) are referenced directly as follows. In the docs these are called "object-selector".

cleartool describe view:my_cc_view
cleartool describe vob:vob1

See cleartool describe man page.

Also, try a dot at the end to get the root directory element of a given vob.

cleartool describe /view/my_cc_view/vobs/.

Upvotes: 1

Related Questions