How to use ClearCase Annotate

I try to use the annotation, but I have a problem: the output ignores some information (date and username) if it was shown for the same version earlier. I would like to display them on any line.

This is my command:

cleartool annotate -out - -rm -nhe -fmt "%Sd ||| %-12.12u ||| %Vn ||| ,,%Vn ||| " -rmf "" "G:\views\myview\myprojectvob\ Form1.frm@ @\main\john_myprject\12" 

This is the way out. I would like to get the date and username for the second and third lines. Do you know if this is possible?

 2008-05-22 ||| john ||| \main\john_myproject\10 ||| End Sub \main\john_myproject\10 ||| \main\john_myproject\10 ||| Private Sub mnuContents_Click() \main\john_myproject\10 ||| On Error GoTo errHandle \main\john_myproject\10 ||| \main\john_myproject\10 ||| Dim stat As Integer \main\john_myproject\10 ||| stat = ExecuteLink(App.path & "\manual.pdf") \main\john_myproject\10 ||| \main\john_myproject\10 ||| Exit Sub \main\john_myproject\10 ||| errHandle: \main\john_myproject\10 ||| MsgBox ("Error with PDF file") 
+3
source share
2 answers

According to the cleartool annotate man page, this command always uses the "elite format" to avoid duplication of information about lines modified by the same author.

Thus, the only solution would be to analyze the result of this command in order to insert the relevant information.

+3
source

You can use -force to get rid of this character (.). This is what I use for my script - cleartool annotate -all -fmt "%Ad %-8.8u %-100.150Vn | " -nheader -force <filename>

+1
source

All Articles