[p4] Determining which files a user has checked in between two dates
Shawn Hladky
p4shawn at gmail.com
Tue May 1 15:46:00 PDT 2007
One tricky part to the logic, is that p4 changes will return changelists in
descending order chronologically, but you'll want to sync them in the
opposite order. I have to ask, if a user submitted the change, why would
they need to sync it? Are they syncing to a different client spec than the
one they submitted from?
As for a "more windows" way to do it... what technology do you have in
mind? You could script this in a batch file. There's P4COM, P4.Net,
vbscript, etc. There's lots of alternatives to using UNIX shell commands.
On 5/1/07, Mark Allender <marka at volition-inc.com> wrote:
>
>
> I'd like to be able to script retrieval of files that have only changed
> between specific times from the depot. Additionally, I'd like to be
> able to do it on a per user basis. What I have is a situation where we
> have a time/date (we'll call T) which we'd like users to sync to. Then
> we'd like to sync only their changes since that time T.
>
> I could do something like
>
> p4 changes -u user //depot/... at T, at new_time
>
> And then grab the changelist number and do
>
> p4 sync //... at changelistnum, at changelistnum
>
> (I think that's right).
>
> I was hoping there might be something that would be, um, more "windows"
> friendly since I don't have the luxury (at least today) of having handy
> tools like grep, sed, and awk on the 200+ development machines that we
> have here.
>
> I've hit a wall here and am wondering if perhaps I'm missing something
> obvious. Thanks in advance.
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
More information about the perforce-user
mailing list