Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I avoid baseless merges in TFS?

Simple question perhaps, but one I'm having a hard time finding the answer to. I often work at a client that uses TFS as source control and they completely avoid using the baseless merge feature of TFS source control

In part because in the past it required a command line tool to do it, but possibly more important because when you do it now in the interface it shows you a yellow exclamation warning symbol that you are indeed performing a baseless merge.

This sort of scares them off and makes them avoid it altogether. I've been searching around to figure out if there are any specific risks involved in baseless merges but I'm unable to find that out (or details on how baseless merges work underneath the hood)

like image 869
Robba Avatar asked Mar 03 '15 10:03

Robba


People also ask

What is baseless merge in TFS?

Use baseless merge to merge items that are not directly branched from each other. To perform a baseless merge, you must use the tf merge command. When you perform a baseless merge, Team Foundation does not have any information about the relationship of the files in the branches.

How do I force merge in TFS?

You need to go to the command line and use tf merge /force e.g. tf merge $/TeamProject/DevBranch $/TeamProject/Trunk /force This should do what you want.


1 Answers

Baseless merges should be avoided if at all possible. When you do a baseless merge, unlike a merge, you are disregarding the history of either side. Indeed you can merge two branches that are totally unrelated—and that can be dangerous.

The key is to create a branching strategy that allows you to not have to use that feature.

like image 128
MrHinsh - Martin Hinshelwood Avatar answered Sep 19 '22 01:09

MrHinsh - Martin Hinshelwood