It's all about the answers!

Ask a question

Getting file(collaboration?) info from repository


Alan King Lun Lai (263) | asked Dec 29 '08, 5:26 a.m.
Hi,

Is there a way to get information like,

1)number of times a developer has modified a file?
2)number of times file a and file b have been modified together?


I am new to using jazz myself and now that I am trying to create a plug-in for it, I am kind of frustrated at where to look for info, I know jazz Lab is a start but it doesn't really get me to where I want.

I am thinking maybe I need to either go through the changeSet, or Task, or WorkItem history and start doing some calculation on my own there.

I am guessing more likely, changeSet is the right thing for my situation,
can someone please give me some pointers hopefully a wiki page?
or some package/source code location to look at?

Thanks a a lot.

2 answers



permanent link
Alan King Lun Lai (263) | answered Jan 01 '09, 5:44 a.m.
for 1)

ah i bumped into a forum post that suggests the following,

public List getHistoryFor(IVersionableHandle versionableHandle, int limit,

boolean examineEras, IProgressMonitor monitor) throws TeamRepositoryException;


for 2)
still wondering if there's some tiny steps that could help

permanent link
John Camelon (1.7k14) | answered Jan 04 '09, 7:48 p.m.
JAZZ DEVELOPER
f9s4 wrote:
for 1)

ah i bumped into a forum post that suggests the following,

public List getHistoryFor(IVersionableHandle
versionableHandle, int limit,
boolean examineEras, IProgressMonitor monitor) throws
TeamRepositoryException;

for 2)
still wondering if there's some tiny steps that could help


You could run IWorkspaceManager#findChangeSets() to find change sets
which affect a particular versioned item. Unfortunately, you cannot ask
about multiple versioned items in the query, so you would need to run 2
separate queries and take the union of the result.


HTH,
JohnC
SCM Server

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.