It's all about the answers!

Ask a question

Get files from a ChangeSet


Giacomo Ghezzi (161) | asked Mar 17 '08, 6:04 a.m.
Hi,
Is there a quick way to get, given a specific change set (IChangeSetHandle), all the files associated to it?
More precisely, if I get the change sets for a specific file with:


List<IChangeSetHandle> cs = FileSystemCore.getFileSystemManager(repository).getFileSystemView(conn).getBlame(conf.component(), (IFileItemHandle)tmp, null, null);


Is there a method,or a quick way, to get from any of those change sets, all the other files associated to it?

cheers
Giacomo

One answer



permanent link
John Camelon (1.7k14) | answered Mar 17 '08, 1:58 p.m.
JAZZ DEVELOPER
Fetch the change-set(s) in question using the item manager:

IChangeSet cs = repo.itemManager().fetchCompleteItem( changeSetHandle,
.... );

Then iterate over the fetched change-sets (along the same lines that I
described in your "Fetch files from repository" thread.

HTH,
JohnC
SCM Server

ghezzi wrote:
Hi,
Is there a quick way to get, given a specific change set
(IChangeSetHandle), all the files associated to it?
More precisely, if I get the change sets for a specific file with:


List<IChangeSetHandle> cs =
FileSystemCore.getFileSystemManager(repository).getFileSystemView(conn).getBlame(conf.component(),
(IFileItemHandle)tmp, null, null);


Is there a method,or a quick way, to get from any of those change
sets, all the other files associated to it?

cheers
Giacomo

Your answer


Register or to post your answer.