我想知道如何将Perforce depot位置转换为客户端视图位置以进行脚本编写.
我有一个脚本,首先在perforce中检出文件以进行编辑,然后与文件进行交互.我需要将库位置(即\ Projects\Project6)转换为客户端视图位置.(即d:\ Projects\Project6).
这可能吗?
我总是使用p4 where命令.以下是内置帮助中的描述:
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.