[p4] How to sync only files already present?

Shawn Hladky p4shawn at gmail.com
Wed Oct 4 11:14:43 PDT 2006


Does this do what you want?

p4 sync -n #have,#head

On 10/4/06, Peter Steiner <peter.steiner at hugwi.ch> 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)?
>
> Regards, Peter
> --
>     _   _        Peter Steiner <peter.steiner at hugwi.ch>
>   / /_/ /        Hug-Witschi AG <http://www.hugwi.ch/>
> /  _  /         Electronic Engineering
> /_/ /_/  _   _   Auriedstrasse 10
>    / / / / / /   CH-3178 Boesingen
>   / /_/ /_/ /    Tel  +41 31 740 44 44
> /_ _ _ _ _/     Fax  +41 31 740 44 45
> _______________________________________________
> 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