14 messages in com.perforce.perforce-user[p4] Forcing sync on missing files only
FromSent OnAttachments
Edward Tsai05 Sep 2003 15:16 
Robert Cowham08 Sep 2003 03:21 
Bob Arnson08 Sep 2003 04:59 
Robert Cowham08 Sep 2003 05:33 
Alen Ladavac08 Sep 2003 06:37 
Jeff Bowles08 Sep 2003 07:03 
Alen Ladavac08 Sep 2003 07:09 
Grills, Jeff08 Sep 2003 08:21 
Edward Tsai08 Sep 2003 10:10 
Alen Ladavac08 Sep 2003 10:31 
Jason Williams08 Sep 2003 10:37 
Robert Cowham08 Sep 2003 10:49 
Stephen Vance08 Sep 2003 20:21 
Jeff Bowles09 Sep 2003 11:13 
Subject:[p4] Forcing sync on missing files only
From:Alen Ladavac (al@croteam.com)
Date:09/08/2003 06:37:10 AM
List:com.perforce.perforce-user

Hi all,

I need to bring a client to sync with a given changelist number, but with a
quirk that some files might have been accidentally deleted on the client's disk using plain file
delete (not p4 delete).

Using "p4 sync -f @12345" will force all files to refresh, even if their
contents are already ok. This causes a lot of network transfer and is terribly slow for a large depot.
What I need is to update only the files that are missing, not all of them. I was thinking of using
something like:

p4 sync @12345 p4 diff -sd @12345 > deleted.txt p4 -x deleted.txt sync -f @12345

But I am not sure if the syntax will really get me what I want. Will the -x
option cooperate with the changelist number correctly in the second sync command? Can anyone more
proficient with the p4 command confirm (or deny) correctness of the syntax?

Thanks, Alen