Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本上,我们有一个 CL (eg1000000),它集成在一个主分支及其所有子分支中。现在假设 CL 1000000 在 master 分支中退出。有没有办法通过脚本检查这些更改是否在其所有子分支中被撤销?
这取决于你如何支持它。如果您使用“p4 undo”命令并且您的管理员启用了能够重新合并撤消更改列表的选项,您可以这样做:
p4 ichanges (source-branch)@=10000000 (child-branch)
如果您通过 P4V 或“p4 edit”命令将其撤消,则没有任何与原始更改相关的可查询元数据 - 您可以检查撤消更改(无论其编号是多少)是否已集成到子项分支,或者您可以从原始更改中获取一行代码并使用“p4 grep”来查看它是否存在于子分支中。