I am getting the following message:
ct annotate myile@@/main/mydev/2
cleartool: Error: Operation "annotate" unavailable for manager "z_whole_copy"
(Operation pathname was: "/opt/rational/clearcase/lib/mgrs/z_whole_copy/annotate")
this is what i found thro net.
annotate is fundamentally text/line oriented, thus it makes no sense to run it for elements which aren't of that type. If your element is a text file,
only with the wrong eltype, you probably want to change its type (ct chtype).
how can i check type of the file?
JIEXA
For my case, element type is "text_file".
Use "cleartool file ..." for testing element type.
Or, you can do "cleartool annotate" for a set of files, and just to ignore the errors, and then "find . -name '*.ann' " to find the resulting annotation files.
gram77
ASKER
command didnt't work for me?
cleartool find . -type f -exec 'cleartool file %CLEARCASE_PN% | egrep -q "text_file|html" && echo "%CLEARCASE_PN%" '
If you want to run annotate on all of them in a batch, you can also do:
cleartool find . -type f -element "eltype(text_file)" -exec "cmd /c cleartool annotate %CLEARCASE_PN%"
cleartool find . -type f -element "eltype(html)" -exec "cmd /c cleartool annotate %CLEARCASE_PN%"
annotate