在Perforce中是否有命令来获取客户端从仓库中映射特定文件夹的信息?
的例子:
我有仓库位置//仓库/myfolder/somefile.java
我想知道哪些客户端将此位置映射到哪个路径:
//client1/c:/folder1/somefile.java//client2/d:/folder2/somefile.java…
我可以从"p4客户端"中获得此信息,但它是针对当前客户端,而不是针对特定的文件夹/文件。
问候,维克多
您可以使用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>
列出客户端规范,最后搜索您感兴趣的路径