2017-02-10 32 views

回答

1

文章 “Symbolic links in snapshot views” 提供一些背景的错误消息:

You cannot check out a file element from a symbolic link path; you must check out the link target.

你会发现更多的 “About checking out Symbolic Link (symlink) Targets in dynamic views

In a snapshot view, the symbolic link target must be loaded in your view also, in order for the Symlink Target Operations to appear.
However, these options are limited, such as the checkout does not work, and the alternatives are to either Warp To Symlink Target or use a dynamic view.

所以:

I want to check whether the file is symlink before checkout.

考虑cleartool lncleartool describefmt_ccase,我想结帐之前做:

cleartool describe -fmt "%[slink_text]p" myFile 

这将显示ARGET符号链接的,由cleartool ls所显示的。

如果结果是空的,它不是一个符号链接。

+0

谢谢。我把那个命令写成了powershell函数并且工作 – Samselvaprabu

相关问题