tags:

views:

45

answers:

2

For maintaining the quality of our perforce depot, I would like to find file which were modified, added or deleted over a certain period of time - say over last week. How do I do that?

+1  A: 

I don't see a way of expressing a date as "@now-7days".

But given this date, you could try to count the lines returned by:

p4 files //...@yyyy/mm/dd,@now
pascal
+1  A: 

p4 fstat -T "headModTime" FILENAME will get you the time that the head revision of that file was modified. Not entirely sure what format that is in - is it seconds since epoch?

tenpn
Yes, that is seconds since epoch.
Bryan Pendleton