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

Compare a snapshot and a repository workspace - check for change sets

Hello community,


My use case: I've created a repository workspace from a snapshot.

After a while I would like to check programmatically (RTC java api) if there are differences between the created workspace and the snapshot: Like if the snapshot is still valid or if I have to create a new one.
RTC plugin in eclipse has a great support. 

But how do I do it with the RTC api?
Any help would be highly appreciated


0 votes

Comments

 So sad I can't upload images because of missing reputation (facepalm). I think it would be helpful 

Sorry, but with the level of spamming we receive sometimes, that is the only way... You can upload someplace else e.g. dropbox and add a link here. 


You might also want to search the forum e.g. on Google using

compare workspace site:jazz.net and have a look at the results.

 Also please tag this with a product name. 

If you really want to develop with the RTC Java Client Libraries, I would suggest to perform the whole Rational Team Concert Extensions Workshop Lab1 and start from there. The explained way of using the RTC SDK will serve you greatly.

 Hi Ralph, 

thanks for the hint! However, I already know how to compare snapshots (like with workspaceManager.compareBaselineSets(...)) and also workspaces.

But I didn't figure out how to compare a snapshot with a repo.
The best I've found is to access the component list and compare each single of them individually... what has a pretty bad performance. Maybe is there a better way?

Best Regards

Alex, I am weak at best in this part of the API. The Repository workspace is a I believe is a IWorkspaceConnection and you might want to look into https://github.com/jazz-community/ewm-scm-utils which is pretty much all I have done with that SCM Libraries far.

If you really want to develop with the RTC Java Client Libraries, I would suggest to perform the whole Rational Team Concert Extensions Workshop Lab1 and start from there. The explained way of using the RTC SDK will serve you greatly.


You could search for IWorspaceConnection and all of its usage in the RTC SDK.

showing 5 of 6 show 1 more comments

Be the first one to answer this question!

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
× 74
× 35

Question asked: Oct 28 '21, 5:09 a.m.

Question was seen: 920 times

Last updated: Oct 28 '21, 7:49 a.m.

Confirmation Cancel Confirm