linux p4使用心得

来源:互联网 发布:阿里金融云 编辑:程序博客网 时间:2024/05/06 07:13

1.设置使用者信息

export P4PORT=perforce-toolchain.eng.vmware.com:1666 && export P4CLIENT=build-toolchain-centos5-32-dev31 && export P4USER=shaoxinw

export PATH=$PATH:/build/apps/bin


2.p4操作命令

$ p4 -h //查看帮助信息

$ p4 changes | grep shaoxinw //查看shaoxinw修改的changelist

$ p4 changes -s pending -u shaoxinw //查看shaoxinw修改的状态为pending的changelist

$ p4 change 1037167 //修改changelist中版本号是1037167

$ p4 change -d  1037167//从changelist中删除1037167

$ p4 client

Root:   /home/tcuser/workspace //工作空间

View:
       //toolchain/main/src/...      //build-toolchain-centos5-32-dev31/src/...  //客户端相对Root的首层路径
       //toolchain/main/lin32/...   //build-toolchain-centos5-32-dev31/lin32/...

                                                 客户机器名



3.验证编译是否成功

strings -a * | grep -i openssl |less //查看编译的包

find ../../lin32/pwdutils-3.0-1/ -type f -exec strings -f {} \; | grep ": OpenSSL [0-9]" | more


post-review 1037167 --submit-as="shaoxinw" --user="shaoxinw"

$ p4 submit -c 1037167//本地提交文件到server


4.遇到错误和解决方法

error:

* You must fix these errors before submitting:
* - "Review URL" is required.

solve:p4 change NUM

增加post-review URL

 

 

http://blog.csdn.net/xiaoxinyu316/article/details/30067659

0 0