[p4] A tool to list all files that haven't been added

David Faison dfaison at photon.com
Fri Jun 2 08:14:19 PDT 2006


The command as it appears would include ALL files not in the depot.

One way to solve this is to use a battery of 'find' filters 
(e.g. ... | find "no such file" | find /v ".obj" | find /v ".class" |
...)

If you have access to a un*x toolset, you could also do the filtering
with a SED or a GREP tool.

David Faison
Photon Research Associates 


-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Sam Roberts
Sent: Thursday, June 01, 2006 4:49 PM
To: perforce-user at perforce.com
Subject: Re: [p4] A tool to list all files that haven't been added

On Thu, Jun 01, 2006 at 12:52:41PM -0400, David Faison wrote:
> On windows, you could type the following:
> 
> 	dir /a-d /b /s | p4 -x- fstat | find "no such file"
> 
> And it would only list files that have not been added to perforce.
> This would also correctly ignore files that have been added but not
yet
> submitted to Perforce.

And would it also list every .obj/.class file and other build artifacts?

Sam
_______________________________________________
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