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

Intersted in the contents inside the component rather than the history when I compare sometimes

Dear Technical support,

I would like to avail the facility in Jazz source control for comparing the contents of files rather than the histories (change sets) between two baselines.

A situation is there where we have two baselines : baseline 20 has the set of folders and files same as baseline 40, except that baseline 40 has some more extra folders. In this case, I would like to get the comparison done between the two baselines and report must be available stating the baseline 20 and 40 matches, but with baseline 40 having extra folders.

Please let me know the way to set the preferences for the above mentioned requirement asap.

0 votes


Accepted answer

Permanent link
I don't think this is how Jazz SCM works -- it's about change sets, not file versions. If you compare two baselines, you should see indications of files that have been added, remove and changed, but it won't be a simple file inventory comparison. This article contains a nice discussion of "SCM archaeology" with RTC

You might be able to create this report by using the API to retrieve the contents of each baseline (essentially the Show Repository Files action) and comparing them. Or perhaps using the SCM command line interface to retrieve each baseline's files to different temporary locations and then compare them.

Hmm, I may have found an SCM Command Line Reference that may help. In Table 14 they mention an "f for file system" option for the -I include argument (and the default behavior does not include f). Maybe give that a try. I am not certain that will work, but it looks like what you are asking for.
Banumathi Jayaraman selected this answer as the correct answer

0 votes

Comments

I've raised a change request to avail such a kind of facility - #284363

Did you try the SCM CLI tool with the "-I f" option and it didn't work? 

No I didn't give a try. I thought of raising the request for easily managing the preferences setting through the window preferences mechanism..

Also, I'm not so very convenient in the SCM CLI tool...I need some guidance. can you help me do this?

Is it the command line interface? Would I be able to use that with the Eclipse client?

lscm compare -c "infrastructure.core.mpc56xx" -I f baseline "61: rel_INFRASTRUCTURE_CORE_E2.5_1.0" baseline "56: rel-E2.5-INFRASTRUCTURE-CORE-1.0"

is the above statement correct to compare two baselines in the component - infrastructure.core.mpc56xx? If no, please guide me.

That looks correct except the argument list may need "-r <URI-to-repository>". See login command description for how to create a short alias or nickname for that.

showing 5 of 6 show 1 more comments

Your answer

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
× 12,015
× 1,201

Question asked: Oct 08 '13, 12:16 a.m.

Question was seen: 5,221 times

Last updated: Oct 09 '13, 11:45 a.m.

Related questions
Confirmation Cancel Confirm