如何获得已集成在CL范围内的更改?

时间:2012-10-02 19:20:48

标签: python perforce p4python

鉴于src和dest分支,如何在dest /...@ lower,upper中找到src中集成的内容?

P4.run_integrated抱怨它不接受修订规范。

1 个答案:

答案 0 :(得分:1)

$ p4 changes dest/...@lower,upper returns the changes submitted into dest.
$ p4 changes -i dest/...@lower,upper includes the changes that were integrated into dest.

后者与前者之间的差异是整合到dest中的变化。

使用p4python会有类似的东西:

changes = set(P4.run_integrated('dest/...@lower,upper'))
changes_with_integrated = set(P4.run_integrated('-i', 'dest/...@lower,upper'))
integrated_changes = changes_with_integrated.difference(changes)