[p4] How to sync only files already present?

Noah Salzman noah at ncircle.com
Wed Oct 4 06:39:42 PDT 2006


On Oct 4, 2006, at 2:02 AM, Peter Steiner wrote:

> I have a rather large client where I sync only hand-picked
> directories/files.
>
> What's the best way to find out if there are newer revisions in any of
> these files?
>
> I have come up so far (on Windows with cygwin) with
>
> p4 files #have | cut -s -d "#" -f 1 | p4 -x - sync -n 2>nul
>
> but this takes some time. Does anybody know a simpler and/or faster  
> way
> to achieve this (command line, P4Win or P4V)?


I may be missing something... but don't you just want this section  
from "p4 help diff":

                 -sa     Opened files that are different from the  
revision
                         in the depot, or missing.

                 -sd     Unopened files that are missing on the client.

                 -se     Unopened files that are different from the  
revision
                         in the depot.

                 -sr     Opened files that are the same as the  
revision in the
                         depot.


More information about the perforce-user mailing list