Merging: How is the target branch determined (or: how to merge)

Hi,

I am trying to merge a changeset into another branch. I'd like to know how Team Foundation Source Control determines what target branches are possible to choose.
Let me explain by examplifying. My branch setup is this

The root is branched into 2 separate branches, A and B
A is later branched once more, so we have A and A.a.
Now, I'd like to merge a changeset from the branch A.a directly into B without merging the change into branch A. Is this possible? The target branches I get when I choose the A.a source tree is only A, not B.

[560 byte] By [ThomasL] at [2008-2-4]
# 1
No, that's not possible. You can only merge between direct branch parents/children.
RichardBergMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Version Control...
# 2

While Richard is correct that a regular merge must be between items with a direct merge relationship, you can use a baseless merge to create that relationship between two items that are not related by branch history.

http://blogs.msdn.com/buckh/archive/2006/02/06/525896.aspx

Buck

BuckHodges at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Version Control...
# 3

Maybe a late reaction to this post, I did not realize this limitation until today.

This is a TFS/SC limitation that is hard to accept and definitely a merge function that you expect to find in an advanced version contol tool.

If the merge tool traverses the version tree of each file it would find the common anchestor and then a three-way merge could take place.

Will this function be available in a future version (from the GUI)?

GT_MSDN at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Version Control...
# 4

For the simple case this is true but I am going to write a blog post that shows how this fails for a lot of the complex scenarios and why we decided not to do it. Now that does not mean that we cannot go and try to create logic only for the simple scenario but when doing that the benefit cost analysis it was really hard to justify.

Blog: http://blogs.msdn.com/mrod/default.aspx

Thanks, mario

MarioRodriguez at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Version Control...

Visual Studio Team System

Site Classified