In Perforce, how do I find files with a specific filetype + attribute?

The files stored in the P4 repository are decorated with the file type and optional attributes:

enter image description here

The above example is for <binary+S4>

.

How to search the depot tree for all files from <binary+S4>

?

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

+3


source to share


2 answers


From the command line (I'm on Windows using Cygwin's "grep" and "cut" versions, should work on Mac / Unix too):



p4 -F %type%:%depotFile% files //... | grep ^binary+S4 | cut -d: -f2- | p4 -x - edit -t +S10

      

+2


source


p4 fstat should solve it for you.



So a command like this will show you all the text files being written. p4 fstat -F "headType=text+w" //DEPOT/...

+4


source







All Articles