To display groups to which the group is an indirect member (by means of inclusion in a subgroup), run the command:
p4 groups -i <group>
To display groups to which the user is an indirect member (by means of inclusion in a subgroup), run the command:
p4 groups -i <user> // replace <user> with the name of the user
To find Unicode Files
$ p4 files //depot/path1/...| wc -l
To Count # of files in any perforce path
$ p4 files //depot/path1/...| wc -l
To see what an account has access to run this from the command line:
p4 protects -u someaccount
You can also check for a particular path:
p4 protects –u taaggarw //depot/branches/...
How to Avoid setting environment multiple perforce environment everytime.
set P4CONFIG env variable set to .p4env which will contain P4PORT, P4PASSWD, P4USER and P4CLIENT and this put this file into your directory. as soon you login from that directory, you dont have to mentioned your P4PORT, P4PASSWD, P4USER and P4CLIENT everytime. it will be take from currect directory .p4env file. so similarly you can create multiple folder in which different .p4env with diff perforce server info can be saved.
Preloading the cache directory for optimal initial performance
To prevent the speed problems is to set up an automatic sync that runs during your night only to populate the proxy with the latest files. Then when you next do your syncs, the files should all be in the local cache and sync quickly. The syntax for a sync that only loads the proxy cache is:
p4 –Zproxyload sync //path/whatever/...
This will preload the proxy's cache without the redundant step of also writing the files to the client workspace, use the -Zproxyload option when syncing. For example:
For more, please visit http:/
To know Password last changed for this perforce user
p4 -p IP:PORT -u <username> users -l | grep <username_to_knw_last-changed>
Some More Commands - Will write usage later.
p4 snap
p4 help snap
p4 -ztag group -o groupname
p4 user -o username
p4 groups -i username
perforce, peroforce command, perforce best practices
software configuration management, software configuration management tools
Last updated 6 days ago by Rajesh Kumar