Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

File Contents same as previous baseline when extracted

I want to get the contents of a file from two different baselines. Then contents of these files are different. However, once I get to the IVersionable of the file I get the extact file that is in the previous baseline. Each file has the same ID and content ID when I view it while in debug mode. However the IVersionableHandle "item" & "item2" in the following code has different ID's when view them in debug mode.

Thanks for any help.







IProgressMonitor monitor = new cloc.SysoutProgressMonitor();


..........................................




bComponent1 = baseline_comp.getComponent();
bComponent2 = baseline_comp.getComponent();

IConfiguration config2 = wc.configuration(bComponent2);

IConfiguration config1 = wc.configuration(bComponent1);


children = config1.childEntries(parent, monitor);
children2 = config2.childEntries(parent,monitor);


for (String name : children.keySet()){

item = children.get(name);

IVersionable filePath = (IVersionable) config1.fetchCompleteItem(item, monitor);


.........




for (String name2 : children2.keySet()){
item2 = children2.get(name2);


IVersionable filePath2 = (IVersionable) config2.fetchCompleteItem(item2, monitor);




..........

0 votes


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Oct 27 '10, 3:26 p.m.

Question was seen: 3,253 times

Last updated: Oct 27 '10, 3:26 p.m.

Confirmation Cancel Confirm