[p4] Determining which files a user has checked in between two dates

Geir A. Myrestrand geir.myrestrand at falconstor.com
Fri May 4 07:34:18 PDT 2007


Mark Allender wrote:
> Right -- but what I'm after is getting a specific set of changes
> inbetween dates -- i.e. those changes that a particular user submitted.
> We can (and will) use the newer label feature (and have used it in other
> automatic build processes here).
> 
> Say we make a label after the known good build.  We might get 100's of
> changes in between that good build and the next one.  I need to cherry
> pick out a particular users changes between those points, not just every
> changelist.
> 
> Builds that fail wouldn't get a label.  Whether or not I look for
> changes between labels (or changelist numbers as David suggested) that
> still doesn't really get me to where I _think_ I'd like to be.
>

I take a more optimistic approach. I label my Perforce branches, then 
check out and build from that label. If the build fails, then the label 
can be removed. If not the build is posted on a fileserver. An automatic 
change log is generated with all changes between the previous label and 
the current label.

We do builds about once or twice per week (per product), so the amount 
of changes aren't too overwhelming. However, I do find interactive 
sessions with P4V or P4Win with various filters on the changelist 
quickly let me track down changes that may break the build.

I can see that this would not be so easy if the builds are run farther 
apart and/or the volume of changes is very high, but then I would rather 
execute the builds more often, as that would track down any breakage 
quicker.

Anyway, someone posted the p4 command to list changes between two dates, 
so using that should get you the results you're seeking.

PS!
Please don't post to me directly, post only on the list. Thanks!

-- 

Geir A. Myrestrand


More information about the perforce-user mailing list