p4 view mapping及其特殊字符
p4 view mapping及其特殊字符
p4 中三种view :client views, branch views, and label views.
注意:
1)如果view中对同一个文件有多次mapping,则后面的覆盖前面的mapping。
2)以-开始的mapping,用来排除文件的mapping,一般用来排除一些目录下的某些子目录或文件。
3)在client views中可以在mapping的最前面有+,表示叠加的效果,不同于一般的覆盖。
文件或路径中的空格:
//depot/v1/... "//ws/version one/..."
“//depot/document 2/..." //ws/document2/...
“-//depot/document 2/file2" //ws/document2/file2
文件或路径中的其他特殊字符:
Character |
ASCII expansion |
@ |
%40 |
# |
%23 |
* |
%2A |
% |
%25 |
client view实例:
Client View |
Sample Mapping |
Full client workspace mapped to entire depot |
//depot/... //ws/... |
Full client workspace mapped to part of depot |
//depot/dir/... //ws/... |
Some files in the depot aremapped to a different part of the client workspace |
//depot/... //ws/... |
Some files in the depot areexcluded from the client workspace |
//depot/dir/... //ws/... |
Files in the client workspace are mapped to different names than their depot names. |
//depot/dir/old.* //ws/renamed/new.* |
Portions of filenames in the depot are rearranged in the client workspace |
//depot/dir/%%1.%%2 //ws/dir/%%2.%%1 |
The files do not map the same way in each direction. The second line takes precedence, and the first line is ignored. |
//depot/dir1/... //ws/build/... |
An overlay mapping is used to map files from more than one depot directory into the same place in the workspace. |
//depot/dir1/... //ws/build/... |
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 用 C# 插值字符串处理器写一个 sscanf
· Java 中堆内存和栈内存上的数据分布和特点
· 开发中对象命名的一点思考
· .NET Core内存结构体系(Windows环境)底层原理浅谈
· C# 深度学习:对抗生成网络(GAN)训练头像生成模型
· 手把手教你更优雅的享受 DeepSeek
· AI工具推荐:领先的开源 AI 代码助手——Continue
· 探秘Transformer系列之(2)---总体架构
· V-Control:一个基于 .NET MAUI 的开箱即用的UI组件库
· 乌龟冬眠箱湿度监控系统和AI辅助建议功能的实现
2010-04-09 C++跨平台IDE之Eclipse
2010-04-09 C++跨平台IDE之CodeBlocks