3

デポから特定のフォルダにマッピングされているクライアントの情報を取得するための Perforce のコマンドはありますか?

例:

デポの場所があります //depot/myfolder/somefile.java

どのクライアントがこの場所をどのパスにマップするかについての情報を知りたい:

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

この情報は「p4 client」から取得できますが、現在のクライアント用であり、特定のフォルダー/ファイル用ではありません。

よろしく、ビクター

4

1 に答える 1

2

p4 client コマンドを使用してクライアントを一覧表示する小さなスクリプトで実行できます。

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 に答える