如何在cleartool中注释文件夹 [英] How to annotate a folder in cleartool
问题描述
我正在尝试使用命令 cleartool注释文件夹名称注释文件夹
I am trying to annotate a folder with command cleartool annotate folderName getting error
cleartool:错误:无法创建文件 test_tut_element_vob.ann:权限被拒绝。
cleartool: Error: Unable to create file "test_tut_element_vob.ann": Permission denied.
我能够注释文件。
推荐答案
cleartool注释
手册页提到以下警告:
The cleartool annotate
man page mentions the following caveat:
annotate
命令从元素的版本中提取信息。
为此,它调用元素的类型管理器的annotate方法。
The
annotate
command extracts information from the element's versions.
To do so, it invokes the annotate method of the element's type manager.
仅 text_file_delta
和 z_text_file_delta
类型管理器(其中对应于预定义的元素类型 text_file
和 compressed_text_file
)包括一个注释方法。
在注释其他元素类型的版本时,必须使用 -ndata
选项。
Only the text_file_delta
and z_text_file_delta
type managers (which correspond to the predefined element types text_file
and compressed_text_file
) include an annotate method.
You must use the -ndata
option when annotating versions of other element types.
因此,请检查与 test_tut_element_vob.ann
相关的类型管理器。
So check the type manager associated with test_tut_element_vob.ann
.
如果 -ndata
不起作用,这取决于 test_tut_element_vob.ann
内容的性质,可以更改其类型。请参见此答案,以获取 compressed_file
。
if "-ndata
" does not work, depending on the nature of the content of test_tut_element_vob.ann
, you can change its type. See this answer for compressed_file
.
这是我的VOB名称,我正在尝试注释整个VOB
it is my vob name and i am trying to annotate the whole vob
cleartool注释
列出版本的内容,注释每行以指示该行何时以及在哪个版本中
这是在文件元素上使用,而不是在VOB上使用。
cleartool annotate
lists the contents of a version, annotating each line to indicate when, and in which version, the line was added.
This is to be used on a file element, not on a vob.
如果目标是注释VOB内的所有文件, ,那么您需要一个视图并且可以找到所有文件,以便使用注释:
If the goal is to annotate all files within a vob, then you need a view and you can find all files, in order to use annotate:
Unix:
cd /path/to/view/vobs/test_tut_element_vob.ann
cleartool find . -type f -exec 'cleartool annotate "$CLEARCASE_PN"'
Windows:
cd c:\path\to\view\test_tut_element_vob.ann
cleartool find . -type f -exec "cleartool annotate \"%CLEARCASE_PN%\""
这篇关于如何在cleartool中注释文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!