1.设置使用者信息
export P4PORT=perforce-wsx.com:1966 && export P4CLIENT=build-toolchain-centos5-32-dev31 && export P4USER=wsx
export PATH=$PATH:/build/apps/bin
2.p4操作命令
$ p4 -h //查看帮助信息
$ p4 changes |grep wsx //查看wsx修改的changelist
$ p4 changes -s pending -u wsx //查看wsx修改的状态为pending的changelist
$ p4 change 1037167 //修改changelist中版本号是1037167
$ p4 change -d 1037167//从changelist中删除1037167
p4 filelog -m 10 file//查看file的修改记录
$ p4 client
find . -type f -print | p4 -x - add //把目录下的文件都添加到p4 open file list里
p4 info
p4 revert filename// To revert a file to its unopened state
discard changes made to open files, reverting them to the revisions last synced from the depot (with p4 sync). , if you change file, it's