[p4] Accessing integrated changes in form trigger

John Hopkins johnh at ca.sophos.com
Tue Jan 2 15:00:54 PST 2007


I'm trying to find a way to access a list of changes integrated by
using a form trigger.  I would include this list (along with change
descriptions) in the change submit form.

Here is an example workflow:

$ p4 interchanges //depot/branch1/... //depot/branch2/...
Change 12345 on 2007/01/01 by user at box 'desc1'
Change 12346 on 2007/01/01 by user at box 'desc2'

$ p4 integrate //depot/branch1/... //depot/branch2/...
$ p4 resolve //depot/branch2/...
$ p4 submit //depot/branch2/...
-------
Change: new
Client: user-box
User:   user
Status: new
Description:
        <enter description here>
        These changes were integrated:
	Change 12345 on 2007/01/01 by user at box 'desc1'
	Change 12346 on 2007/01/01 by user at box 'desc2'
Files:
        //depot/branch2/file1 #branch
        //depot/branch2/file2 #branch
-----

Is there a reliable way to get this information inside a form trigger
before a change is submitted?

Thanks,
John

-- 
John Hopkins
Build Engineer, Sophos
Sophos - integrated threat management


More information about the perforce-user mailing list