How to get the changes in an eclilpse plugin on delivery
![]()
Hi Forum,
I have managed to create a server-side plugin when a user delivers something.
I dont know how to get the changes within the changeset?
this is the code to list the changesets:
DeliverOperationData data = (DeliverOperationData) operationData;
List<?> changeSetHandles = data.getChangeSetHandles();
How can i see what's in the changesets?
(when an enterprise extension named 'naming convention' is changed, the delivery should be blocked)
|
One answer
![]()
Ralph Schoon (62.0k●3●36●43)
| answered Feb 03 '15, 11:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Maybe this helps? https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/, however it looks only at the change sets. There are however other posts that look a bit deeper at SCM: https://rsjazz.wordpress.com/?s=scm
Comments Hi Ralph. I have read the posts you suggested and am able to get the IChangeSethandle interfaces, but i still do not see what changes are made on the files... Can you provide me with some more information please? Handles are persistent pointers to objects.. to get the actual object, you need to use one of the Auditable resolvers to get the data out of the database..
I only have what I blogged about, sorry. Another source, maybe could be http://thescmlounge.blogspot.de/ , maybe if you search the web, there could be code snippets out there.
|