List all changesets in component in stream
Hi all,
We want to be able to list all changesets per component in stream, but scm cli only enables listing up to 1024 changesets.
The Eclipse 'show history' window enables configuring max number of enteries in "Preferences" option, even to '1000000' entries. Using this method we are able to get the full list of changesets. How can we export the Eclipse output to external file, without manually copying the output? We have to make this process as automated as possible, since it includes a lot of streams and components.
Thanks you all,
Yael
|
2 answers
I have never tried to export the list of change sets with scm cli or Eclipse, but I have done it using RTC Plain Java API.
Have a look a this code snippet:
IWorkspaceHandle streamHandle = (IWorkspaceHandle) reportStream.getItemHandle();
IWorkspaceConnection reportStreamConn = wm.getWorkspaceConnection(streamHandle, null);
// search change sete for each component
List<IComponentHandle> compHandles = reportStreamConn.getComponents();
for (IComponentHandle compHandle : compHandles) {
List<IChangeSetHandle> csList = new ArrayList<IChangeSetHandle>();
IChangeHistory changeHistory = reportStreamConn.changeHistory(compHandle);
while( changeHistory != null ){
IChangeHistoryDescriptor d = changeHistory.getHistoryDescriptor(true, monitor);
List<IChangeHistoryEntryChange> chList = d.recent();
for(IChangeHistoryEntryChange ch: chList){
csList.add(ch.changeSet());
}
changeHistory = d.previousHistory();
}
// .... do what you want with csList, the list of change sets for th current component in the stream
}
Comments
Yael K
commented Dec 08 '17, 2:37 p.m.
Hi Luca,
Thanks for your answer!
Do you know if this function includes "date added" attribute of change set in stream?
Luca Martinucci
commented Dec 10 '17, 8:43 a.m.
Actually, I didn't retrieve the "date added" of the change set.
|
LQE together with Report Builder can do this out of the box.
Just build your report and you can export it to Excel etc. or use it with RPE for official documents.
regards
Guido
Comments
Geoffrey Clemm
commented Dec 11 '17, 2:27 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
My understanding is that this information is not posted to the LQE index. Do you have some documentation or personal experience that it is?
Guido Schneider
commented Dec 11 '17, 3:05 p.m.
I have V.6.0.4 and can do a report with LQE datasource based on SCM Changesets.
Guido Schneider
commented Dec 11 '17, 3:08 p.m.
See also News and Noteworthy of RTC 6.0.3
Geoffrey Clemm
commented Dec 12 '17, 2:56 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Yes, some information about change sets is stored in the LQE, but the question was about listing all of the change sets in a given stream in a given component. I didn't see any "stream" information associated with the change sets, so how would one produce a report that only listed the change sets in a given stream? Your right. Sorry I missed this requirement.
Geoffrey Clemm
commented Dec 13 '17, 7:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
We definitely want to get this kind of information into the LQE index, but because of the volume for this kind of data (for example, a simple, very fast deliver operation could logically add thousands of change sets to a stream), one has to be careful how the data is modeled in the index, or be able to quickly handle massive amounts of new data. The re-architecture of the LQE index currently underway may allow us to use the latter approach, but we'd want to verify that.
showing 5 of 6
show 1 more comments
|
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.