2015-07-31 3 views
1

Я пытаюсь аннотировать папку с командой cleartool аннотировать FOLDERNAME получает ошибкуКак аннотировать папку в cleartool

cleartool: Error: Unable to create file "test_tut_element_vob.ann": Permission denied.

Я могу комментировать файлы.

+0

Вы можете опробовать и: или принять (http://stackoverflow.com/help/accepted-answer) предыдущие ответы на свои вопросы ClearCase? – VonC

ответ

0

cleartool annotate man page упоминает следующее предостережение:

The annotate command extracts information from the element's versions.
To do so, it invokes the annotate method of the element's type manager.

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.

если "-ndata" не работает, в зависимости от характера содержимого test_tut_element_vob.ann, вы можете изменить его тип. См. this answer за compressed_file.


it is my vob name and i am trying to annotate the whole vob

cleartool annotate выводит содержимое версии, аннотирования каждой строки, чтобы указать, когда и в какой версию, была добавлена ​​линия.
Это должно использоваться для элемента файла, а не для vob.

Если цель состоит в том, чтобы аннотировать все файлы в ВОБ, то вам нужен вид, и вы можете найти все файлы, для того, чтобы использовать Аннотировать:

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%\"" 
+0

Я использую -nData и получаю эту ошибку, о которой идет речь. –

+0

@akshayjain why -nData? почему нет -ndata? (на всякий случай он чувствителен к регистру) – VonC

+0

oops yup the -ndata –

Смежные вопросы