Search code examples
clearcasecleartool

ClearTool: Finding changes from specific date


I am at loss on how to

  1. list all files and directores that were deleted from branch "xyz" on date Mar-1.
  2. List all directories that had their contents changed on that same day.

I tried transcribe the patterns from Cleartool - find unloaded/removed files from branches to dates, with no success.

Thanks a million

Adam


Solution

  • The find commands I mentioned in "Cleartool - find unloaded/removed files" are for files only.

    You can use them for directory if you use -type d (instead of -type f)

    But that wouldn't address the date issue.

    since a file deletion results in a new directory version (to record that deletion), I would search for all directory versions created on that day:

    cleartool find . -type d -version 'created_since(01-Mar) && !created_since(02-Mar)' -print
    

    Then, I would compare with previous versions (cleartool diff -previous) for each of those directory version found, in order to grep and list the deleted files.