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

Community
  • 1
  • 1
Adam
  • 45
  • 5

1 Answers1

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 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! – Adam Mar 10 '14 at 13:13