如何通过Config Spec中的Label检索文件? [英] How can I retrieve a file through Label in Config Spec?

查看:66
本文介绍了如何通过Config Spec中的Label检索文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用名为 My_Label 的标签标记了文件 Test.java

当我尝试使用以下配置规格创建视图时,无法在Clearcase Explorer中获取文件。

I have labelled a file "Test.java" with a label called "My_Label".
When I try creating a view with the below config specs, I am unable to get the file in Clearcase Explorer.

element * CHECKEDOUT
element * My_Label

有人可以告诉我我要去哪里了吗

Could anyone please tell where am I going wrong in the above config spec?

推荐答案

仅上述选择规则是不够的。

That selection rule alone isn't enough.

您需要在该规则之前添加其他规则,这些规则将选择正确的 parent 目录版本。

You need to add, before that rule, other rules that will select the right version of the parent directories.

换句话说,如果您的Test.java的父目录(或祖先之一)未标记My_Label,则不会选择它

即使您有正确的文件选择规则,您的视图也无法访问您的文件。

In other words, if your parent directory (or one of the ancestors) of Test.java isn't labelled with My_Label, it won't be selected at all.
So your file won't be accessible by your view, even though you have the correct selection rule for you file.

检查Vob本身是否已被MyLabel标记。

Check if the Vob itself has been labelled with MyLabel.

如果没有,我建议至少添加一条最终的停止规则( / main / LATEST :请参阅 使用configspec进行ClearCase分支(该规则的说明):

If not, I would recommend at least to add one final "stop" rule (/main/LATEST: see "ClearCase Branching using configspec" for an illustration of that rule):

element * CHECKEDOUT 
element * My_Label
element * /main/LATEST

这篇关于如何通过Config Spec中的Label检索文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆