如何获取没有更换主义者的Perforce仓库列表?
是否可以获取没有创建的仓库列表(仓库的名称)及其创建日期。
Is it possible to get the list of depots (name of the depot) that have no changelist created along with their creation date.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行
P4更改
针对每个仓库,并打印每个没有结果的名称/时间。这是一个使用P4Python的快速示例:
当我针对我自己的本地服务器运行此脚本时,它列出了我所做的所有仓库,它们中没有任何更改者:
与
p4 Depots的仓库列表相比/code>:
请注意,仓库上的
时间
是修改 time;仓库规范无法维护原始创建时间时间。但是,如果没有变更者被提交到仓库中,则仓库规格本身也没有被修改以来。Run
p4 changes
against each depot, and print the name/time of each that has no results.Here's a quick example using P4Python:
When I run this script against my own local server it lists all the depots I've made that don't have any changelists in them:
compared to the full list of depots from
p4 depots
:Note that the
time
on the depot is the modification time; the depot spec doesn't maintain the original creation time. However, it's likely that if no changelists have ever been submitted into a depot, the depot spec itself hasn't been modified since its creation either.