10 messages in com.perforce.perforce-user[p4] how to delete all files NOT in d...
FromSent OnAttachments
Jay Glanville11 Jan 2005 06:59 
Robert Cowham11 Jan 2005 07:55.rb
Schröder, Marko11 Jan 2005 08:08 
Chuck Karish11 Jan 2005 08:12 
Stephen Vance11 Jan 2005 08:31 
Eric Slosser11 Jan 2005 08:49 
Ken....@thomson.com11 Jan 2005 08:54 
Eric Slosser12 Jan 2005 07:36 
jab16 Jan 2005 07:46 
Chuck Karish16 Jan 2005 09:39 
Subject:[p4] how to delete all files NOT in depot?
From:Ken....@thomson.com (Ken.@thomson.com)
Date:01/11/2005 08:54:21 AM
List:com.perforce.perforce-user

Why? Here's the situation: I have an automated loadbuild. Due to bad designers, I can't guarantee that a "make clean" (or "ant clean") will remove all derived objects from my workspace. Thus, the only way that I can guarantee a clean build on an automated system is to delete all the files in the workspace, then perform a forced sync to head. This is a terribly inefficient methodology.

An efficient variation on this inefficient methodology would be to use a symlink
tree. Use one of the available tools to make a symlink tree to the real
sources, then when you need to clean up, blow away the symlinks and recreate the
tree.

-Ken