tags:

views:

23

answers:

1

Hi,

I am trying to get ClearCase to give me an absolute pathname. (The tree from the view root to the current element would be fine too).

cleartool desc -fmt "%Xn" yields the checked out pathname - excellent. But I need the \vob\directory\to\the\file as well.

Is there a simple way to do this? I know one way is to convert to the OID and then back, but that is very slow - I'd like to at least keep an eye towards speed.

A: 

Since, according to fmt_ccase, '%Xn' is about the extended pathname, you need to compute the path of the file within the view.

If you know the full path of the file, you need to compute the view root only one (/path/to/view) in order to substract it from the full path of the file (/path/to/view/vob/path/to/file), as suggested in ClearCase - file system path to element path.

VonC