How to compare and merge files across stream?
![](http://jazz.net/_images/myphoto/3e255ee704d5c532e320263c06279468.jpg)
I have a streamA with ComponentA. ComponentA has fileA and FolderA.
On my local system I have fileA, and FolderA but with different content.
I want to merge these files together and also report the changes between them, then resolve the conflicts and merge. This example is of one file, but I have 100+ files coming from different project which I need to merge in my stream. Hence getting the report on differences and then resolving conflict is important.
What I did:
Created a new streamB, added the ComponentA from streamA to it. Imported fileA and FolderA from local drive into streamB>ComponentA. Checkedin and delivered to streamB.
Changed the flow target of streamA to StreamB (set it to current). I see the changes from streamB incoming to streamA. Now when I accept these changes and since fileA has differences, it should have given me a conflict but it didn't. It simply accepted the changes.
What is the right way to do?
Also how to get the differences? I tried compare baselines, but it didn't show the differences in FileA .
Please suggest.
3 answers
![](http://jazz.net/_images/myphoto/3e255ee704d5c532e320263c06279468.jpg)
Comments
![](http://jazz.net/_images/myphoto/a36d1dcfd3e1e1e00aeb18c860d1443d.jpg)
Note that "do merge between Stream A and Stream B" means to either merge from Stream B to Stream A, or merge to some third stream, such as "Stream AB". Stream B should be reserved for receiving incoming work from the other team ... i.e. the next time the other team has changes, copy those changes onto a sandbox that is loaded from a workspace for Stream B, and then checkin those changes.
![](http://jazz.net/_images/myphoto/3e255ee704d5c532e320263c06279468.jpg)
Comments
![](http://jazz.net/_images/myphoto/3e255ee704d5c532e320263c06279468.jpg)
Actually, I am getting set of files (e.g. FileA) from different team. I need to merge these files with StreamA managed by me. These are common files across 2 projects, but they are treated differently. My project has to be on same changes as the other project. Hence I have to import them > identify what is different in fileA with me and the one I received > Generate report on differences > Merge conflicts
How can this be done?
![](http://jazz.net/_images/myphoto/3e255ee704d5c532e320263c06279468.jpg)
1. Have workspace A and B and Stream A and B.
2. Stream A flows into stream B.
3. At this point there are no components
4. Add the component and file into workspace A and deliver
5. Now there should be a common annsestor in all workspaces / streams
6. Add new files to workspace B. The changes will only flow to Stream B and not A
7. make modifications to files in workspace A. Now when delivering we would expect to see a conflict when the changes are flowing from stream A to stream B.
a. The way to resolve the conflicts is to set a flow target from workspace A to Workspace B and resolve the conflicts.
NOTE: As Ralph noted, as long as there is a common ancestor this should work. otherwise, you will need to manually check for differences.
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jun 20 '15, 5:30 p.m.Just to confirm, I assume you are using RTC for your work, while the "different project" is not using RTC (if they were using RTC, everything would be automated, and it would act the way you would expect).