本篇文章主要介绍了"Perforce 与Source Insight, Visual Studio集成",主要涉及到Visual Studio方面的内容,对于.NETjrs看球网直播吧_低调看直播体育app软件下载_低调看体育直播感兴趣的同学可以参考一下:
转自:http://shashanzhao.com/archives/837.html1.Perforce 首先需要为perforce设置系统环境变量,以便pe...
转自:http://shashanzhao.com/archives/837.html
1.Perforce
首先需要为perforce设置系统环境变量,以便perforce命令行可以正常使用.
环境变量名 | 值 |
P4CLIENT | 填写你的workspace的名字,例:code_myname |
P4PORT | 填写perforce服务器地址和端口号,例:172.23.3.3:1666 |
P4USER | 填写你的用户名,例:myname |
P4DIFF(可选) | 填写比较工具的路径,例: d:\Programs\BeyondCompare\BCompare.exe,如果使用perforce自带的比较工具就不用设这个环境变量了 |
P4PASSWD | 填写登陆的密码,例:password |
2.集成至Source Insight
1. Source Insight菜单Options->Custom Commands,
选择以下各个Command,填写各个Command的Run.
Command: | Run: |
Check Out | p4 edit %f |
Undo Check Out | p4 revert %f |
Sync File to Source Control Project | p4 sync %f |
Compare with Current | p4 diff –f %f |
其中Compare with Current命令需要自己添加.
点击Add按钮, 填入命名: Compare with Current即可添加一条.