如何将Perforce depot位置转换为客户端视图位置

Pol*_*ine 9 mapping client perforce view

我想知道如何将Perforce depot位置转换为客户端视图位置以进行脚本编写.

我有一个脚本,首先在perforce中检出文件以进行编辑,然后与文件进行交互.我需要将库位置(即\ Projects\Project6)转换为客户端视图位置.(即d:\ Projects\Project6).

这可能吗?

bk1*_*k1e 11

我总是使用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.
Run Code Online (Sandbox Code Playgroud)


Gra*_*row 2

查看p4 have命令。您为其提供软件仓库位置客户端文件名,它会为您提供软件仓库位置、客户端文件名以及文件的版本。