1 message in com.perforce.perforce-user[p4] p4 revert -a for non-existant files
FromSent OnAttachments
Mark Lakata13 Jul 2000 16:12 
Subject:[p4] p4 revert -a for non-existant files
From:Mark Lakata (lak@mips.com)
Date:07/13/2000 04:12:27 PM
List:com.perforce.perforce-user

'p4 revert -a' works for files opened for edit but not modified. Is there a way to make it work for files opened for add, but that do not exist?

In otherwords, I would like to

rm -f foo bar p4 add foo bar touch foo p4 revert -a # (bar is removed from the changelist, as if it was never there) p4 submit # (only foo is submitted)

p4 submit complains heavily if you try to submit a file that does not exist.

i think I can script something that does this, but it would be clumsy.

thanks, -Mark