ClearCase动态视图不显示空文件 [英] ClearCase dynamic view doesn't show empty files
问题描述
我们通常使用快照视图,它们可以正常工作。
但是,我最近尝试使用动态视图,并且在工作目录中不显示空文件。我们使用Python,也就是说,它不会显示空的 __ init __。py
文件,这会破坏我们的大部分代码。同一目录中的所有其他文件以及非空的 __ init __。py
文件都存在。
这是一个已知问题吗?我该怎么办?
运行 cleartool ls
说到 __ init__py
文件:未选择版本。
我的配置规格如下:
元素* CHECKEDOUT
元素* SubComponenet1_VersionX
元素* SubComponenet2_VersionY
元素* SubComponenet3_VersionZ
元素/ src_base / main / LATEST
假定空文件位于 src_base
并考虑最后一条规则,文件怎么没有选定的版本?
首先,尝试使用 cleartool ls
在这些文件的父目录中,在Shell或DOS窗口中。
您可以看到那里的状态,
还要检查动态视图的配置规范是否类似于快照视图:
-
cleartool catcs
快照视图 -
cleartool edcs
从动态视图
要使非UCM动态视图反映UCM快照视图,可能会非常复杂。
最好在同一Stream上创建动态UCM视图。
至少,您的配置规范应以停止规则结尾:
element * / main / LATEST
#或
元素/ src_base / ... / main / LATEST
最后一条规则仅适用于/ src_base目录,而不适用于子元素。 / p>
We usually use snapshot views and they work just fine.
However, I tried to use a dynamic view recently and doesn't show empty files in the working directory. We use Python so namely, it doesn't show empty __init__.py
files, which breaks most of our code. All other files in the same directory, and non-empty __init__.py
files exist.
Is this a known issue? What can I do?
Running cleartool ls
says about the __init__py
file: "no version selected".
My config spec looks something like this:
element * CHECKEDOUT
element * SubComponenet1_VersionX
element * SubComponenet2_VersionY
element * SubComponenet3_VersionZ
element /src_base /main/LATEST
Assuming the empty files are inside src_base
and considering the last rule, how can a file not have a selected version?
First, try a cleartool ls
in the parent directory of those file, in a shell or a DOS windows.
You can see there status, and see if they are selected by your config spec.
Check also that the config spec of your dynamic view is similar to your snapshot view:
cleartool catcs
within your snapshot viewcleartool edcs
from your dynamic view
For a non-UCM dynamic view to reflect an UCM snapshot view, it can be pretty complex.
It is best to create a dynamic UCM view on the same Stream.
At the very least, your config spec should end with a stop-rule:
element * /main/LATEST
# or
element /src_base/... /main/LATEST
Your last rule is only for /src_base directory, and not for the sub-elements.
这篇关于ClearCase动态视图不显示空文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!