Is it possible to get a list of all the check-ins I've made within a given source code directory tree using cleartool? If possible I'd like to see when the check-in was made and the file version. I'm using Windows.
Thanks in advance.
In a dynamic view, checkin deletes each view-private, checked-out pname file after using it to create a new version. In a snapshot view, checkin uses the checked-out pname file to create a new version, then loads the checked-in version into the view.
Answer. To find view-private files within a snapshot view, use cleartool ls -recurse -view_only .
This would involved a cleartool find
command with:
-exec
directive to describe the versions found-fmt
to better format the result-created_by
query language operator to restrict the results to only your checkins versions.You can either display all versions of the checkins files, or only one file per all versions checked-in, that is the 'element'. In your case, to see when the checkin has been made, you need to list the versions.
Something like:
REM Windows syntax
cleartool find . -ver "created_by(myLogin)" -exec "cleartool descr -fmt \"%En : %Sn made %Vd\n\" \"%CLEARCASE_XPN%\""
# Linux syntax
cleartool find . -ver 'created_by(myLogin)' -exec 'cleartool descr -fmt "%En : %Sn made %Vd\n" "$CLEARCASE_XPN"'
'.' will designate the current directory from which you are looking your versions.
%Sn
will give you branch/versionNumber, %Ln
would only give you the version number.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With