I’m using the code:
"c:\Program Files (x86)\ibm\RationalSDLC\ClearCase\bin\cleartool.exe" find . -name "*" -ver "created_by(someuser)" -print > c:\my_checkins.txt
to find a list of my check-ins in ClearCase. I’d like to include the date of the check-in. Can I do that? If so, how? Can I have the results sorted by the check-in date?
Thanks.
You can add an -exec directive to describe and format the result of each version you are finding with your
cleartool findquery.Instead of using -print, you can combine a find with a formatted describe (Windows syntax):
%CLEARCASE_XPN%being the extended pathname of one of the versions found by the query.See the
fmt_ccasepage.You might want to use the format “
%Nd - %n\n” if you want to sort by date, because is%Ndis a date expressed asyyyymmdd.time.