Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list all my check-ins using ClearCase?

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.

like image 328
John Topley Avatar asked Feb 22 '09 11:02

John Topley


People also ask

What is checkin in ClearCase?

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.

How do I see private files in ClearCase?

Answer. To find view-private files within a snapshot view, use cleartool ls -recurse -view_only .


1 Answers

This would involved a cleartool find command with:

  • an -exec directive to describe the versions found
  • a -fmt to better format the result
  • a -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.

like image 163
VonC Avatar answered Sep 25 '22 20:09

VonC