ClearTool: Finding changes from specific date

a 夏天 提交于 2019-12-01 11:40:06

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/22300632/cleartool-finding-changes-from-specific-date

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!