linux p4使用心得

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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值