我在perforce depot上有一个文件,当我使用自动脚本更新它时,我想找到映射文件的所有工作区(使用p4
命令)并向这些工作区的所有者发送电子邮件(文件包含项目的最新视图规范,电子邮件的收件人应该收到通知,以便他们也可以更新他们的视图规范)
答案 0 :(得分:0)
Providing that none of the workspaces you want to look at are using the 'Host' field, you can run:
p4 -c have
to get a list of all files that are synced on the client.
Note this would first involve you getting a list of all workspaces on the server, by running:
p4 clients
Also this may be quite resource intensive, if your server has a lot of clients that sync a lot of files, so I would recommend using something like the Perforce Review Daemon or Perforce Swarm for code review and notification.
More details about these are available here:
http://www.perforce.com/perforce/doc.current/manuals/p4sag/chapter.scripting.html
http://www.perforce.com/collaboration
Hope this helps, Jen.