Find files in Clearcase view newer than a specific date?

无人久伴 提交于 2019-11-26 17:09:28

问题


I've got to upload my changed files for code review, but I have the following issue:

I need to find all the files in my view that have changed since my last code review upload. I thought I labeled all the files when I did the last review upload, but it appears that I didn't.

How do I find all clearcase elements in my current view that have a date newer than the date of my last upload? There have been MANY check-ins since the last upload.


回答1:


You could look for all versions in your view that are older than a date:

ct find -all -type f -version "{created_since(11-apr-2013) && brtype(branch_name)}" -print

Will find all files and avoid directories.




回答2:


This is a cleartool find request with a time-based directive from the query language:

(See Additional examples of the cleartool find command)

cleartool find <vobtag> -element "{created_since(target-data-time)}" -print

That will list elements (instead of versions, which would display many checkins versions for every file)

This should work for snapshot or dynamic views, UCM or not ("UCM" being for views attached to an UCM Stream).



来源:https://stackoverflow.com/questions/7676263/find-files-in-clearcase-view-newer-than-a-specific-date

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