[p4] FW: Identifying binary files
Robert Cowham
robert at vaccaperna.co.uk
Mon Jan 14 13:51:42 PST 2008
Yes via command line by piping to grep or findstr (or via simple
ruby/python/perl script).
Commands such as p4 fstat as opposed to p4 files, or p4 -ztag files can
sometimes be useful.
(On windows with Unxutils installed)
p4 files //... | grep "\(.*binary.*\)$"
or
p4 fstat //... | grep -2 "headType.*binary" | grep depotFile
You might want to ignore deleted files - exercise for reader!
For GUIs it's a case of wrapping the above in a custom tool.
This may not have been the answer you were hoping for :)
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of
> todd.benham at kodak.com
> Sent: 14 January 2008 18:20
> To: perforce-user at perforce.com
> Subject: [p4] Identifying binary files
>
> Is there a way to list only binary type files in the depot?
> Such as p4 files //depot/...(binary)
>
>
> Related but different ...
>
> Is there a way to exclude binary files in a branch spec?
> Such as -//depot/...(binary) //depot/...(binary)
>
>
> I am not finding a way to do this.
More information about the perforce-user
mailing list