Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS > Branching: Converting Source Folder To Branch

TFS: What are the consequences of converting a source folder to a branch?

I want to create a branch from a folder in which we have our source code and I see the following option in "Branch" dialog in VisualStudio:

"Immediately convert source folder to branch (enables visualizations)"

Do I loose any information (e.g. file history etc.).

Are there any disadvantages to do it?

Thanks and appreciate your help.

Lerner.For.Ever

like image 363
Learner.For.Ever Avatar asked Nov 24 '16 17:11

Learner.For.Ever


People also ask

How do I change a directory to a branch in TFS?

Convert a branch to a folder In Source Control Explorer, click the branch that you want to convert. On the File menu, point to Source Control, point to Branching and Merging, and then click Convert to Folder.

How does TFS Branching work?

Branching in TFVC uses path-based branches that create a folder structure. When you create a branch, you define a source, usually the main folder, and a target. Then files from the main folder are copied into your branch. As developers work, they are encouraged to forward integrate (FI).

What is branch and merge in TFS?

Merging allows you to copy code from one branch to another, or to synchronize changes between two branches. You can only merge branches if you use TFS as your version control system.


1 Answers

The release of Team Foundation Server 2010 began a distinction between branches and folders. The following illustration shows the top-level of the folder structure in Source Control Explorer:

enter image description here

As the illustration shows, you can still use folders to organize branches within a team project's version control hierarchy. However, folders and branches have a different appearance and different capabilities. When you right-click a folder or branch and click Properties, you display different information and different functionality.

When you perform branch operations, branches have important advantages over folders. Branches support version control features that provide extra visibility into your branch structure and into where your changesets have merged. (For more information, see these wonderful links: Visual Studio TFS Branching Guide)

Although you can still branch and merge among folders, the best practice for your team is to branch and merge only among branches.

Above points are all related to the difference in TFS and VS, something about Trunk and main, you could take a look at the answer from Jesse Chisholm in Folder converted to branch?

like image 90
PatrickLu-MSFT Avatar answered Sep 19 '22 02:09

PatrickLu-MSFT