clearcase symbolic link file not visible from a snapshot view

本小妞迷上赌 提交于 2019-12-08 03:33:11

问题


I have created a symbolic link (see below) to a version controlled file from a different vob (VOB_II) and the file is visible from a dynamic view whereas it’s not visible from the UCM snapshot view.

A.txt --> ..\..\..\VOB_II\SampleDir\A.txt

I have the following selection and load rules.

element \VOB_II\SampleDir\A.txt ...\branch1\LATEST
load \VOB_II\ SampleDir

Any ideas why the file is not getting loaded in the snapshot view? I could not figure out what’s wrong. Any help or inputs are much appreciated.


回答1:


First, do a cleartool ls in C:\path\to\my\view\VOB_II\SampleDir

The status can explain why the element is not loaded.

Typically, you need selections rules that selects also the parent folders (SampleDir and Vob_II) before being able to select A.txt.

I would recommend at least adding an element * /main/LATEST (stop rule)

element \VOB_II\SampleDir\A.txt ...\branch1\LATEST
element * /main/LATEST
load \VOB_II\ SampleDir

Second, it looks like you are trying to load the actual A.txt (the one in VOB_II\SampleDir\A.txt), and not the symbolic link one the A.txt pointing to ..\..\..\VOB_II\SampleDir\A.txt

I don't know where is that symbolic link A.txt. In Vob_I?


Third, see "Symbolic links in snapshot views"

Snapshot views created from Linux or the UNIX system maintain standard symbolic link behavior.

In the context of loading a snapshot view, links are treated as:

  • VOB links (those that point to objects inside the VOB) and
  • non-VOB links (those that point outside the VOB).

Hard VOB links are followed; symbolic links are copy-created.
If a VOB link cannot be resolved, an error results.
Non-VOB links are resolved, if possible, but it is not an error if they cannot be resolved.

Snapshot views created from a Rational ClearCase host running Windows software do not support links.
VOB symbolic link behavior is approximated in the following ways:

If a load rule selects a symbolic link, the link target is copied into the view at the link path.



来源:https://stackoverflow.com/questions/39519708/clearcase-symbolic-link-file-not-visible-from-a-snapshot-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!