Perforce中是否有命令获取客户端从库中映射特定文件夹的信息?
示例:
我有仓库位置//depot/myfolder/somefile.java
我想知道客户将此位置映射到哪条路径的信息:
//客户端1 / C:/folder1/somefile.java //client2/d:/folder2/somefile.java ...
我可以从“p4客户端”获取此信息,但它是针对当前客户端而不是针对特定文件夹/文件。
此致,Victor
答案 0 :(得分:2)
您可以使用小脚本使用p4 clients命令列出客户端:
p4 help clients
clients -- Display list of clients
workspaces -- synonym for 'clients'
p4 clients [-u user] [-e nameFilter -m max]
Lists all client workspaces currently defined in the server.
The -u user flag lists client workspaces that are owned by the
specified user.
The -e nameFilter flag lists workspaces with a name that matches
the nameFilter pattern, for example: -e 'svr-dev-rel*'
The -m max flag limits output to the specified number of workspaces.
然后使用
遍历每个客户端p4 client -o <client name>
列出客户端规范,最后搜索您感兴趣的路径。