perforce - `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
命令输出中的前导虚线是什么意思?
该文档似乎没有解释这一点。
解决方案
您链接到的文档有一个示例:
-//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,所以我忘记了正确的术语)。
推荐阅读
- asp.net - 如何从sql server通过id过程调用retrivedata
- javascript - 在 chrome 工具中获得正确的全屏相机,但在真实设备中获得更小的屏幕
- reactjs - Reactjs 和 Firebase - 在 db 中向用户添加对象并为该对象生成唯一 URL
- haskell - cabal 文件和 repl 中的不同警告设置
- jmeter - Jmeter - 从变量中一一传递参数
- highcharts - Highcharts:导出XLS(excel)后有两列,我想添加另一列显示百分比
- mysql - MSSQL 从一个表中选择列值到另一个表
- r - 基于另一个变量的重复值的变量的总和
- chatbot - 如何在我的个人聊天机器人与 Microsoft 团队之间传输数据
- curl - Solr curl ExtractOnly 用于 Pdf 文件