It's all about the answers!

Ask a question

How to fetch all the change-sets between two specific baselines programmatically?


Ping Cao (124) | asked Apr 08 '15, 8:29 a.m.
edited Apr 08 '15, 8:35 a.m. by Ralph Schoon (63.2k33646)
Hi,

My requirement is to fetch all the change-sets between specific baselines by program. I know I can compare these two baselines in RTC client to show all the change-sets between them. However, I want to do the same thing by program.

Does anyone know how to achieve that? It'll be very nice if you can give me direction. Thanks a lot!

2 answers



permanent link
Greg Pflaum (67913) | answered Apr 08 '15, 7:43 p.m.
The scm CLI "compare" command can compare two baselines. If you want to do it with the API, use com.ibm.team.scm.client.IBaselineConnection#compareTo().

References:
https://jazz.net/help-dev/clm/topic/com.ibm.team.scm.doc/topics/compare.html
https://jazz.net/forum/questions/23378/using-api-how-to-compare-two-baselines-to-get-changesets
https://jazz.net/forum/questions/67780/scm-versus-api


permanent link
Lee John (51310) | answered Apr 08 '15, 9:24 p.m.
 Check below link:

On line 206~260:
  1. IChangeHistorySyncReport changeHistory = pbaseLineConnection  
  2.                                     .compareTo(  
  3.                                             baseLineConnection.getBaseline(),  
  4.                                             null); 
  5. ...


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.