view - 如何将Perforce仓库位置转换为客户端 View 位置

标签 view mapping client perforce

我想知道如何出于脚本编写的目的将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/

相关文章:

mysql - 错误 1349 (HY000) : View's SELECT contains a subquery in the FROM clause

android - 从android中的 View 中删除监听器

java - 通过套接字双向文件传输中的输入流干扰

python - 如何修复 websocket-client Python 模块中的 CERTIFICATE_VERIFY_FAILED 错误?

C Socket编程服务器向多个客户端发送相同的消息

ruby-on-rails - Rails - 在 View 中显示所有字段的简便方法

java - Couchbase 使用 key 获取给定日期范围内的文档

elasticsearch - 如何输入GET或发布新的Index Elasticsearch映射

matlab - 矩阵的映射值?

http - 通过代理强制使用 HTTP1.1 而不是 HTTP2 (Charles)