2011-10-25 73 views
3

Perforce中是否有命令獲取客戶端已從映像倉庫映射特定文件夾的信息?Perforce倉庫/客戶端映射

例子:

我有倉庫位置//depot/myfolder/somefile.java

我想知道哪些客戶端地圖這個位置信息,在該路徑:

//客戶端1/C :/folder1/somefile.java //client2/d:/folder2/somefile.java ...

我可以從「P4客戶」這一信息,但它是當前客戶端而不是爲特定的文件夾/文件。

問候,維克多

回答

2

你可以用一個小腳本使用P4客戶命令列出的客戶做到這一點:

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> 

到每個客戶端列出客戶端規格,最後搜索您感興趣的路徑。