Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Using the API to determine when a changeset was delivere

Hi,
I'm using the jazz plain client to read the contents of a stream or workspace. I use the following API calls to get there:-

IWorkspaceManager.findWorkspacesByName
IWorkspaceManager.getWorkspaceConnection
IWorkspaceConnection.getComponents
IWorkspaceConnection.configuration
IConfiguration.childEntriesForRoot

Once I work through the heirachy I end up with a load of IFolder and IFileItem.

From IFileItem/IFolder how can I find out the last changeset to modify that file and most importantly, in my case, when that changeset was delivered to my stream/workspace?

Cheers,

Michael Baylis
IBM Hursley

0 votes



3 answers

Permanent link
To find the changeSets that affected a particular file or folder, you use IWorkspaceConnection.changeHistory(component) to get an IChangeHistory object.
IChangeHistory.getHistoryFor will return IChangeHistoryEntryChange objects that reference the changeSets that modify the file/folder.

Unfortunately the entries returned here do not give you the date the changeSet was introduced to the workspace or stream.

Starting in 5.0.1 Sprint 1 which will be available in the next week or so, Story 304215 introduces changes so that when you use IWorkspaceConnection.changeHistory(), the IChangeHistory.recent, getHistoryDescriptor and getHistoryDescriptors will return IChangeHistoryEntryChange objects that do contain the dates the changeSet was introduced to the stream.

Here, you would first use getHistoryFor to find the changeSet id, and then search through the history returned from getHistoryDescriptors to find that changeSet and get the delivery date from there.

1 vote


Permanent link
Scratch this, I think I am going about this the wrong way.

0 votes


Permanent link
Nope, still need this, but only a bit of it.

Given the IFileItem or IfileItemHandle, how can I get to the change set. I need the uuid or orther id of the changeset that last modified the file. (Same for the folders of course)

Cheers,

Michael Baylis
IBM Hursley

0 votes

Comments

Hi Michael,

Do you have an answer for your question ?

I'm looking for the same thing..

 To be honest,  it was so long ago I can't remember where I got to with this.  Sorry.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,934
× 1,202
× 169
× 43
× 13

Question asked: Jul 08 '09, 8:48 a.m.

Question was seen: 6,971 times

Last updated: Jun 10 '14, 4:25 p.m.

Confirmation Cancel Confirm