Clearcase Find Based on Checkin Date and Comments

The command to find all the matching files in the current directory is

cleartool find . -type f -name “*.java” -branch “brtype(main)” -version “created_since(2014-09-22)” -exec “cleartool desc -fmt \”Version: %n\tComment: %c\n\n\” %CLEARCASE_XPN%” | findstr “commented string to be found”

  • the example uses the main branch, you can replace it with any branch x by brtype(x)
  • the example queries the checkins since 2014-09-22
  • -fmt defined the output format of each matching element, feel free to customize it
  • the “commented string to be found” could be any substring of the comment you entered.
  • Note if you want to expand the find to all renamed and removed elements, you can use “find -all” instead of “find .”
This entry was posted in Tool and Debug and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s