开发者

Converting pathname from relative to absolute in ClearCase

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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜