3

Perforce 中是否有命令获取哪些客户端从 depot 映射特定文件夹的信息?

例子:

我有仓库位置 //depot/myfolder/somefile.java

我想知道哪些客户端将此位置映射到哪个路径的信息:

//client1/c:/folder1/somefile.java //client2/d:/folder2/somefile.java ...

我可以从“p4 客户端”获取此信息,但它适用于当前客户端,而不适用于特定文件夹/文件。

问候,维克多

4

1 回答 1

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>

列出客户规范,最后搜索您感兴趣的路径。

于 2011-10-26T18:47:05.273 回答