It's all about the answers!

Ask a question

Difficulties merging "evil twin" directories/files


Peter Hendriks (2611) | asked Jan 04 '10, 6:04 a.m.
I am having difficulties merging directories and files which are added at multiple streams/workspaces before being merged together (described as "evil twins" in the Jazz merge article). I tried following the article at: http://jazz.net/library/article/39#Example_6 and the help at:
Resolving Structural Conflicts.

The UI does not seem to respond as indicated in the article. When I add a file in the same location with different contents in multiple changesets (add file, suspend changeset, new changeset with add file same location, different contents, resume suspended) I do not get a content diff. Instead, the UI only shows the contents of the first changeset on the right hand side.

When I add a directory in multiple changesets and merge them together, I get very little feedback on what will happen depending on the type of merge resolution. The help is pretty vague and when I try out the different options it is difficult for me to get the rationale behind the options.

Could anyone explain to me what should happen depending on the choice I make when I try to merge added directories on the same location from multiple changesets?

Also, is there any way to see the contents and original changesets of the files/directories of the two conflicting changesets when doing this kind of merges?

Thank you in advance for any answer!

11 answers



permanent link
Erik anderson (38315029) | answered Jun 03 '10, 1:26 p.m.
Resuming "Evil Twin" discussion in relevant work item

https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=98654

permanent link
Geoffrey Clemm (30.1k33035) | answered Jun 03 '10, 12:47 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Response to this message appears in the same message that was reposted
in its own thread.

permanent link
Geoffrey Clemm (30.1k33035) | answered Jun 03 '10, 9:38 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
To use the Eclipse GUI to activate the synchronizer build engine for a
particular sync stream, you need to be running the Eclipse client on the
machine where you want the sync engine to be running. Then just open
the ClearCase synchronized streams view, right click on the synchronized
stream you are interested in, and select the "Start Synchronization
Engine" operation.

Cheers,
Geoff

On 6/3/2010 9:08 AM, yaron wrote:
Hello,
I am using RTC 2.0.0.2.
I am using also ClearCase Connector in order to Sync ClearCase Stream
to RTC.
I have performed all the needed configurations and it works fine.
The connector is using the build mechanism - build engine and
definition.
The problem is that currently the build engine is not running and I do
not find a way to enable it using the GUI.
Error is: the build enginge process may not be running.

Is there a way to enable it using the GUI?

I guess I will be able to activate it using the cmd.

Thanks,

Yaron

permanent link
Erik anderson (38315029) | answered Jun 03 '10, 9:22 a.m.
Thanks - that worked for and "Add <-> Add"

But if I make another change to the file in the source stream and flow, I get a "Deleted <-> Modified" and the same approach does not work:

2 scm status
Workspace: (1163) "eanderso foobar 2.0 Merge" <-> (1126) "foobar 2.0"
Component: (1106) "comp1"
Baseline: (1165) 39 "SNAP 20100521.1545"
Component: (1166) "comp2"
Baseline: (1169) 5 "FB1.0_20100528.1107"
Conflicts:
Example1/lwp/evilFile.txt (Deleted <-> Modified)
Outgoing:
Change sets:
(1187) --$ "evilFile.txt - another change source stream"

2 scm resolve -c Example1/lwp/evilFile.txt
Cannot resolve conflicts, unmatched items:
\Example1\lwp\evilFile.txt
Problem running 'resolve':
Supplied paths must match existing conflicts

What would I use to resolve with mine?

Comments
Erik anderson commented Dec 18 '12, 4:39 p.m.

Using 3.0.1.3.  Any ideas?

C:\tools\MergeSandbox> scm.exe conflicts
Conflicts:
  C-- /felement.xml (Deleted <-> Modified)

C:\tools\MergeSandbox>  scm.exe resolve -c /felement.xml
Cannot resolve conflicts, unmatched items:
  /felement.xml
Problem running 'resolve':
Supplied paths must match existing conflicts

C:\tools\MergeSandbox>dir
12/18/2012  04:19 PM    <DIR>          .
12/18/2012  04:19 PM    <DIR>          ..
12/18/2012  04:24 PM    <DIR>          .jazz5
12/18/2012  12:12 PM    <DIR>          .metadata
12/18/2012  04:19 PM               210 .project
12/18/2012  04:23 PM             2,165 felement.xml


permanent link
Erik anderson (38315029) | answered Jun 03 '10, 9:06 a.m.
Yaron, please post this as a new topic, not as a reply to this thread.

permanent link
Yaron Norani (47267065) | answered Jun 03 '10, 8:59 a.m.
Hello,
I am using RTC 2.0.0.2.
I am using also ClearCase Connector in order to Sync ClearCase Stream to RTC.
I have performed all the needed configurations and it works fine.
The connector is using the build mechanism - build engine and definition.
The problem is that currently the build engine is not running and I do not find a way to enable it using the GUI.
Error is: the build enginge process may not be running.

Is there a way to enable it using the GUI?

I guess I will be able to activate it using the cmd.

Thanks,

Yaron

permanent link
Shashikant Padur (4.2k27) | answered Jun 03 '10, 3:10 a.m.
JAZZ DEVELOPER
Resolve with mine (checked in version)...
1 scm resolve -c Example1/lwp/evilFile.txt

use -p for Resolve with proposed.

permanent link
Erik anderson (38315029) | answered Jun 01 '10, 2:27 p.m.
Does anyone know if &quot;structural&quot; changes can be resolved with the SCM tool (SCM conlficts ... and SCM resolve ...)? The UI is working fine with regard to evil twins (proposed vs mine vs move), but I can't get the same behavior using the SCM tool.

What SCM commands would I use to resolve the following conflict:

1 scm status -d &quot;C:\Program Files\IBM\TeamConcert2.0.0.2_iFix2\merge-ws&quot;
Workspace: (1162) &quot;foobar 2.0 Merge&quot; &lt;-&gt; (1126) &quot;foobar 2.0&quot;
Component: (1106) &quot;comp1&quot;
Baseline: (1165) 39 &quot;SNAP 20100521.1545&quot;
Component: (1166) &quot;comp2&quot;
Baseline: (1169) 5 &quot;FB1.0_20100528.1107&quot;
Conflicts:
Example1/lwp/evilFile.txt (Added &lt;-&gt; Added)
Outgoing:
Change sets:
(1178) --$ &quot;evil test - source stream&quot;

permanent link
Heather Fraser-Dube (4512) | answered Jan 06 '10, 8:44 a.m.
JAZZ DEVELOPER
Resolve as merged probably doesn't make a lot of sense right now with directories in the add-add evil twin case. It might make more sense later when we have properties.

Resolve as merged is very similar to resolve with mine. The difference between the two is that Resolve as merged verifies that the item has been saved since the conflict was introduced. The intention is to help prevent the user from marking something as merged when they did not merge (so they don't lose other people's changes).

Thank you for the detailed answer! I tried it out again on different repo workspaces/projects and on some situations it does work correct. I'll try to come up with a way to reproduce the lack of evil twin compare.

On the directory merge, thanks. I had some problems merging directories where I didn't want to use the same kind of resolutation (mine/proposed/merged) on each file in the directory. If I start in a file, I get some pop-ups of merging the parent, but this will cascade to the other files too. I will try to use the move command to get the merge I want.

In you example, you can also select &quot;resolve as merged&quot; on the directory &quot;a&quot;. This results in a remove/add for the files. When would you want to select this merge resolution for the &quot;a&quot; directory (in contrast to resolve with mine/proposed)?

permanent link
Peter Hendriks (2611) | answered Jan 06 '10, 8:32 a.m.
Thank you for the detailed answer! I tried it out again on different repo workspaces/projects and on some situations it does work correct. I'll try to come up with a way to reproduce the lack of evil twin compare.

On the directory merge, thanks. I had some problems merging directories where I didn't want to use the same kind of resolutation (mine/proposed/merged) on each file in the directory. If I start in a file, I get some pop-ups of merging the parent, but this will cascade to the other files too. I will try to use the move command to get the merge I want.

In you example, you can also select &quot;resolve as merged&quot; on the directory &quot;a&quot;. This results in a remove/add for the files. When would you want to select this merge resolution for the &quot;a&quot; directory (in contrast to resolve with mine/proposed)?

Your answer


Register or 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.