`p4 where` 输出中的前导“-”(破折号)是什么意思?
What does the leading "-" (dash) mean in output of `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
命令输出中开头的虚线是什么意思?
documentation 似乎没有解释。
您链接到的文档有一个示例:
-//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,所以我忘记了正确的术语)。
这是一个减号(如 3 - 2 = 1
);它表示排除。
输出的内容是:
- 此文件未映射到
branch1
- 此文件未映射到
branch2
- 此文件 被 映射到
branch3
我有一个 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
命令输出中开头的虚线是什么意思?
documentation 似乎没有解释。
您链接到的文档有一个示例:
-//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,所以我忘记了正确的术语)。
这是一个减号(如 3 - 2 = 1
);它表示排除。
输出的内容是:
- 此文件未映射到
branch1
- 此文件未映射到
branch2
- 此文件 被 映射到
branch3