Perforce
Perforce 是由 Perforce 软件公司开发的一种快速软件配置管理系统。
注意: 启用 Perforce 插件才能使用它。
配置 Perforce
要设置 Perforce 首选项,请选择首选项>Version Control >Perforce :
在P4 command 中,设置命令行客户端可执行文件的路径。
在P4 user 、P4 client 和P4 port 中设置工作区详细信息。
使用配置文件
要为多个项目单独指定工作区详细信息,可使用配置文件:
- 在顶层项目目录中为每个项目创建
p4config.txt
配置文件。 - 转到首选项>Version Control >Perforce 。
- 清除Environment Variables 。
- 要设置
P4CONFIG
使用您创建的文件,请从命令行运行一次以下命令:p4 set P4CONFIG=p4config.txt
有关使用P4CONFIG
变量的更多信息,请参阅Perforce:P4CONFIG。
编辑文件
除了使用常用 VCS 功能中描述的标准版本控制系统功能外,还可以选择Tools >Perforce >Edit File ,在客户端工作区中打开文件进行编辑。默认情况下,文件会自动打开供编辑。要禁用此功能,请选择首选项>Version Control >Perforce ,然后清除Automatically open files when editing 复选框。
要列出已打开供编辑的文件,请选择Tools >Perforce >Opened 。
要对提交的文件进行分组,请选择Tools >Perforce >Pending Changes 。
要查看更改列表及其中文件的信息,请选择Tools >Perforce >Describe 。
另请参阅 启用和禁用插件、设置版本控制系统、使用常用 VCS 功能和版本控制系统。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.