Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Perforce, how to find files with certain filetype+attribute?

Tags:

perforce

Files stored in P4 depot are decorated with file type and optional attributes:

enter image description here

The above example is for <binary+S4>.

How can I search the depot tree for all files which have <binary+S4>?

I want to audit these files and change attributes of some of them to <binary+S10>.

like image 287
miroxlav Avatar asked Sep 14 '25 11:09

miroxlav


1 Answers

p4 fstat should solve it for you.

So a command like this would show you all of the writable text files. p4 fstat -F "headType=text+w" //DEPOT/...

like image 135
hoppy Avatar answered Sep 17 '25 20:09

hoppy