Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find files in Clearcase view newer than a specific date?

Tags:

clearcase

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.

like image 629
Luciano Avatar asked Oct 06 '11 14:10

Luciano


2 Answers

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.

like image 101
Generic Name Avatar answered Nov 04 '22 15:11

Generic Name


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).

like image 39
VonC Avatar answered Nov 04 '22 15:11

VonC