首页 > 解决方案 > `p4 where`的输出中前导的“-”(破折号)是什么意思?

问题描述

我有一个 depot ( //depot/branch) 目录映射到工作区 ( //user_space) 中的三个位置。输出p4 where看起来像这样

$ p4 where //depot/branch/README.md    
-//depot/branch/README.md //user_space/branch/README.md C:\dev\branch\README.md
-//depot/branch/README.md //user_space/branch2/README.md C:\dev\branch2\README.md
//depot/branch/README.md //user_space/branch3/README.md C:\dev\branch3\README.md

命令输出中的前导虚线是什么意思?

文档似乎没有解释这一点。

标签: perforce

解决方案


您链接到的文档有一个示例:

 -//a/b/file.txt //client/a/b/file.txt //home/_user_/root/a/b/file.txt
 //a/b/file.txt //client/b/file.txt /home/_user_/root/b/file.txt

它是这样解释的:

 This can be interpreted as saying that the first line of the client
 view would have caused the file to appear in /home/user/root/a/b/file.txt,
 except that it was overridden by the second mapping in the view. 

更一般地说,前导连字符用于从逻辑上删除客户端视图规范中的一行(我不再每天使用 perforce,所以我忘记了正确的术语)。


推荐阅读