It's all about the answers!

Ask a question

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


Luca Martinucci (1.0k294112) | asked Feb 16 '15, 3:18 a.m.
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.

Accepted answer


permanent link
Michele Pegoraro (1.8k14118103) | answered Feb 16 '15, 8:39 a.m.
 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

Comments
1
Luca Martinucci commented Feb 17 '15, 9:47 a.m.

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.

Your answer


Register or 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.