我想知道如何出于脚本编写的目的将Perforce软件仓库位置转换为客户端 View 位置。
我有一个脚本,该脚本首先 check out 要在perforce中进行编辑的文件,然后与该文件进行交互。我需要将软件仓库位置(即\Projects\Project6)转换为客户端 View 位置。 (即d:\Projects\Project6)。
这可能吗?
最佳答案
我一直在使用命令来使用 p4。这是内置帮助的描述:
where -- Show how file names map through the client view
p4 where [ file ... ]
Where shows how the named files map through the client view.
For each argument, three names are produced: the name in the
depot, the name on the client in Perforce syntax, and the name
on the client in local syntax.
If no file is given, the mapping for '...' (all files in the
current directory and below) is shown.
Note that 'p4 where' does not determine where any real files are.
It only computes where they should be according to the client view.
关于view - 如何将Perforce仓库位置转换为客户端 View 位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/300692/