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

How to retrieve incoming changes using server-side Java API?

I am implementing a Java extension to RTC, and I need to retrieve the list of incoming changes to a stream (or a repository workspace).
I have found some samples of code that use client-side classes, and I wonder how to achieve the same results using server-side classes.
My RTC version is 4.0.6.

0 votes


Accepted answer

Permanent link
 Luca,
you can use the compare methods of IScmService:

compareWorkspaces(localWorkspaceHandle, remoteWorkspaceHandle, remoteRepoDescriptor, flags, excludedComponents, syncTimes, monitor)

or 

compareWorkspaceConfigurations(sourceWorkspace, targetWorkspace, componentsToConsider, monitor)

Michele.
Luca Martinucci selected this answer as the correct answer

2 votes

Comments

Using the first method with the appropriate flags (I need to retrieve both incoming change sets and incoming baselines), I reached my goal.
Grazie, Michele.

1 vote

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,941

Question asked: Feb 16 '15, 3:18 a.m.

Question was seen: 2,902 times

Last updated: Feb 17 '15, 9:47 a.m.

Confirmation Cancel Confirm