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

Is there any way to retrieve the list of merged file?

I want to retrieve the list of merged file for the reviewing the result of merging.
The merged file means the files has already resolved conflict(merged) in the past.

Anyone feel like giving me a hand?

0 votes



3 answers

Permanent link
Hi,

there is a good article on SCM archaeology in jazz.net, highlighting how to retrieve historical information about change sets and files. Does the information help you?
For latest RTC 4.0.5 you will want to consider the changes introduced by advanced gap merge handling as detailed in the improved gap handling article.

Please mark this answer as accepted if it contains the info you were looking for.

Thanks,
Arne

0 votes


Permanent link
I'm not sure if this is exactly what you are looking for, but:
See IChangeSet.changes() for a list of changes in the change set.
Now see IChange.mergeStates(). If it's null, then the change has not been merged.

Also, if you only care about files and not folders, you can use:
if (IChange.item() instanceof IFileItemHandle)

0 votes


Permanent link
The way we get a list of merged files is as follows:

Snapshot your stream before files are merged, merge your files, and take another snapshot after the merge process. Once you have those 2 snapshots, they can be compared to show your changes. We use the generateChangeLog.ant to generate the changes which accepts 2 snapshots and compares the differences in them.

I believe there is a way to compare 2 snapshots within RTC itself though, if you just want to validate the merge process.

0 votes

Comments

Hi, James

Thanks for your answer.
I tried compare 2 snapshots and I could show my changes.
But I could show merged files in Change Explorer View.
How can I show merged files?
I need to do another step?

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
× 1,202
× 33

Question asked: Dec 20 '13, 12:32 a.m.

Question was seen: 5,478 times

Last updated: Jan 16 '14, 7:19 a.m.

Confirmation Cancel Confirm