Perforce 仓库/客户端映射

发布于 2024-12-12 11:02:57 字数 286 浏览 1 评论 0原文

Perforce 中是否有命令可以获取客户端从软件仓库映射特定文件夹的信息?

示例:

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

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

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

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

问候,维克多

Is there command in Perforce to get information which clients has mapping for particular folder from depot ?

Example:

I have depot location //depot/myfolder/somefile.java

I want to know information which clients map this location to which path:

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

I can get this information from "p4 client" but it is for current client and not for particular folder/file.

Regards, Victor

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

分開簡單 2024-12-19 11:02:57

您可以使用 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>

列出客户端规范来迭代每个客户端,最后搜索您感兴趣的路径。

You could do it with a small script using the p4 clients command to list 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.

and then iterate over each client using

p4 client -o <client name>

to list the client spec, and finally search for the path(s) you are interested in.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文