7

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.

Luciano
  • 1,571
  • 3
  • 17
  • 23

2 Answers2

6

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

ezgoodey
  • 97
  • 1
  • 13
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks. This looks like it might work: I had trouble finding the Query Language documentation. – Luciano Oct 06 '11 at 15:24
  • @Luciano: yes, and I find the list of find examples more useful that the query language page ;) – VonC Oct 06 '11 at 16:05
  • @VonC I believe it just list the files created since the specified date, but the question asks for the files modified since the date. – neves Jul 09 '13 at 21:36
  • @neves true, that was the best approximation I found at the time. – VonC Jul 09 '13 at 22:10
5

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.

kleopatra
  • 51,061
  • 28
  • 99
  • 211
Generic Name
  • 1,083
  • 1
  • 12
  • 19