ClearTool: Finding changes from specific date
Asked Answered
W

1

1

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

Wellfavored answered 10/3, 2014 at 12:51 Comment(0)
M
2

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.

Motto answered 10/3, 2014 at 13:4 Comment(1)
Awesome reply! In speed as well as precision. I had only to insert a blank after the "!" to keep Linux from chewing it into something different!Wellfavored

© 2022 - 2024 — McMap. All rights reserved.