How to create a Log of changes done in code?
Benjamin Maier (33●3●9)
| asked Feb 20 '17, 10:09 a.m.
retagged Feb 24 '17, 4:15 p.m. by Ken Tessier (841●1●7) Hello,
So that you create a log of all commits from a certain time on, with the edited files, authors and dates.
Is there any way possible, to extract similar change logs with the JAVA API? The data I am looking for should be somehow saved in the change sets, right? Without a log like this, a historical meta data analysis is hardly possible. Thanks! |
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Feb 20 '17, 11:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I would suggest to look into the Jazz SCM Command Line before trying the API.
See https://jazz.net/library/article/620 and https://jazz.net/help-dev/clm/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Fc_scm_cli.html .
I am reasonably sure that the RTC Java APIs and code from the RTC Client SDK would allow this. So you basically would have to look at the history of a stream - the histories of components in that stream beginning with the latest sate and iterate the change sets and their content and log that. I have talked to a partner that did something similar using the API and hooked up to the RTC SCM Deliver follow up action to be able to gather information asap.
Nevertheless, I would suggest to try using the SCM command line, because the API is not documented. I provided you wit the starting points in my blog rsjazz already in other questions you asked. You can search the blog also for SCM to find all blogs that have SCM API.
Comments
Ralph Schoon
commented Feb 20 '17, 11:25 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Another thing you can try is, compare two snapshots or baselines on a component in the Eclipse client.
Then in the Change Explorer save the change log, if that is what you want. There is a variety of options what to include in the change log.
|
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.