![](/img/trans.png)
[英]is there a way to find all the perforce workspaces which are mapping a certain file in the depot?
[英]Perforce depot/client mapping
是否有Perforce中的命令來獲取客戶端從庫中映射特定文件夾的信息?
例:
我有倉庫位置//depot/myfolder/somefile.java
我想知道客戶端將此位置映射到哪個路徑的信息:
//client1/c:/folder1/somefile.java //client2/d:/folder2/somefile.java ...
我可以從“p4客戶端”獲取此信息,但它是針對當前客戶端而不是針對特定文件夾/文件。
此致,Victor
您可以使用小腳本使用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>
列出客戶端規范,最后搜索您感興趣的路徑。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.