Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does it mean when Source Control Explorer shows both branch and merge for a changeset?

Tags:

tfs

tfs-2005

I am trying to understand the history of my codebase, which resides in TFS 2005, and I encountered a changeset where all changes were marked as both branch and merge.

Name    Change           Folder
------------------------------------------------
A.cs    merge, branch    $/Root/Solution/Project  

I am unable to find anything (especially on MSDN) describing what the various combinations of Add, Edit, Delete, Branch, Merge, Undelete, Encoding, etc mean. Each is pretty self explanatory when used alone and some do not make sense together like Add and Delete so I am looking for information on the legal combinations and what they mean.

like image 951
Faron Avatar asked Feb 18 '10 18:02

Faron


People also ask

How do I merge branches in TFS?

Right-click the main branch, point to Branching and Merging, and then click Merge… The Source Control Merge Wizard appears. On the Select the source and target branches for the merge operation screen: In Source branch, specify the main branch.

What is Source Control Explorer?

The Source Control Explorer is used to view and manage source control-related files and settings for your project. This window pane collects all source control information in one place so you do not need to open multiple windows or tabs when working with projects that are bound to source control.


1 Answers

Merge can be combined with anything except Add. On its own, Merge just means that (1) whatever happened is the result of invoking the Merge command (2) when you checkin, TFS will record the appropriate merge history metadata in addition to the changes themselves. The remaining operation(s) in the list of changetypes tells you exactly what kind of change is being applied to the target item. Thus:

Merge, Branch = an item that exists in the source branch but not the target branch is being copied over to the target for the first time

like image 99
Richard Berg Avatar answered Sep 23 '22 22:09

Richard Berg