It's all about the answers!

Ask a question

File Contents same as previous baseline when extracted


Kirk Broadwater (1611) | asked Oct 27 '10, 3:26 p.m.
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);




..........

Be the first one to answer this question!


Register or to post your answer.