Getting a change set from an IChangeSetHandle
Hi,
I have an IChangeSetHandle object obtained from an AcceptReport and an associated ChangeSetInfo object. I want to use these to get at the Change Sets themselves so I can parse them and persist the results as a file. I've looked at the available documentation and forum posts but cannot, unfortunately find anything to help me do this.
Hopefully there is a simple answer to this (I guess so)
Thanks in advance for your help.
Cheers, Andrew
I have an IChangeSetHandle object obtained from an AcceptReport and an associated ChangeSetInfo object. I want to use these to get at the Change Sets themselves so I can parse them and persist the results as a file. I've looked at the available documentation and forum posts but cannot, unfortunately find anything to help me do this.
Hopefully there is a simple answer to this (I guess so)
Thanks in advance for your help.
Cheers, Andrew
2 answers
You have to fetch the item using IRepositoryItemService on server side or IItemManager on the client side.
Then you can use following methods:
IRepositoryItemService.fetchItem(IItemHandle itemHandle, String[] properties)
IItemManager.fetchCompleteItem(IItemHandle itemHandle, int flags, IProgressMonitor monitor)
Regards,
Michele.
Then you can use following methods:
IRepositoryItemService.fetchItem(IItemHandle itemHandle, String[] properties)
IItemManager.fetchCompleteItem(IItemHandle itemHandle, int flags, IProgressMonitor monitor)
Regards,
Michele.