如果我希望我的符号 link 在主(或开发)视图中激活,我需要签入吗?

If I want my symbolic link to become active on a main (or dev) view, do I need to check it in?

背景

在 clearcase 中,您可以使用 series of commands:

创建符号 links
  1. Change directory (cd) to root of the VOB1: cd /vobs/vob1
  2. Checkout the directory in the target VOB, vob1: cleartool co -nc .
  3. Create a symbolic link from the source VOB, vob2: Note: It is always best to use a relative path to the root of the other VOB. cleartool ln -slink ../vob2 vob2
  4. List the directory to verify that the link is there: cleartool ls vob2 --> ../vob2
  5. Checkin the current directory to commit the changes: cleartool ci -nc .
  6. Test the link: cd vob2 pwd /vobs/vob1/vob2

IBM 页面上所写的步骤象征性地应用于 link 已经存在的源目录和目标目录。为文件创建一个符号 link 几乎是一样的。

问题

根据第 5 步,您必须签入目标目录(在本例中为 vob1),symlink 才能全局激活。这是微不足道的,因为该目录已经存在。但是,IBM 页面没有提及将新的符号 link 签入文件(或目录)。我知道 clearcase symlinks cannot be checked out,但没有提到检查 in new symlinks。这引出了我的问题:

问题

我是否需要签入新创建的文件 symlink 才能使 link 全局激活?

Do I need to check-in a newly created file symlink for the link to become active globally?

否:第 5 步指的是您正在创建的元素的父文件夹(此处为符号链接)。
对于该元素(在第 3 步中创建),您需要签入父文件夹以便该文件夹将其列为其子元素。

只要父文件夹签入,您的新元素将仅在您的视图中保持可见。