Unable to compare files when a Gap + Name Conflict occurs.
Hi,
I have the following scenario:
User 1 creates Hello.java and delivers it to STREAM A:
User 2 creates a file with the same name in the same directory, but delivers it to STREAM B
User 2 modifies Hello.java and delivers a new change set to STREAM B
User 1 tries to accept ONLY the latest change set that modifies the Hello.java but in STREAM A.
User 1 sees the Gap Editor:
User 1 right click 'Content Modified' and invokes "Open In Compare Editor". However, the Compare editor is not shown, I get this message instead:
As per this documentation: https://jazz.net/library/content/articles/rtc/4.0.5/scm-merge-gap/#MergeQueue, it should be possible to compare both files in the Compare editor. Do you know why it doesn't work form me?
I´ll appreciate your help!
|
Accepted answer
Geoffrey Clemm (30.1k●3●30●35)
| answered May 21 '14, 1:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Currently, you cannot use merge with gaps from a file that does not exist in the workspace.
A couple of workarounds you can use: If the evil twin is in your workspace, and the incoming evil twin is in your team stream: - Suspend the change set(s) that created your evil twin - Accept the incoming changes - Resume your suspended change sets, which will pop up the usual process for resolving evil twins, and use the editor to keep the changes that you want from the respective evil twins. If the evil twin is in some location other than your team stream: - Create a patch of the change set from the evil twin that you want applied - Apply that patch to your workspace. I've also submitted work item Extend the gap-merging wizard to handle incoming changes from an evil twin. (316860) to request the gap-merging wizard be enhanced to handle this case. Leonardo Marzo selected this answer as the correct answer
Comments
Leonardo Marzo
commented May 21 '14, 8:34 a.m.
Thanks Geoffrey. I´ll subscribe to the work item. 1
Leonardo, both you and Geoffrey are correct. The Gap editor does not yet support merging the "(Name Conflict)" cases, or viewing the two different files in a compare editor. The only options are to either ignore the change and keep what is on disk, or to overwrite the existing file with the proposed file.
|
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.