26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Summary of Steps<br />

• Step 1 – Evaluate Whether a Baseless Merge Is Needed<br />

• Step 2 – Perform a Baseless Merge Using Tf.exe<br />

• Step 3 – Resolve Merge Conflicts<br />

• Step 4 – Check-In the Merged Changes<br />

Step 1 – Evaluate Whether a Baseless Merge Is Needed<br />

In this step, you evaluate the branches and items to be merged to determine if you need to<br />

do a baseless merge or whether a regular merge will work.<br />

If you are the owner/administrator of your team project, you will know the relationships<br />

between the branches or items. From <strong>Visual</strong> <strong>Studio</strong>, you can only merge the branches or<br />

items that have a parent-child relationship. If your project contains branches or items that<br />

do not have this relationship, you require to perform baseless merge.<br />

If you are not aware of all the relationships between the branches or items, you can<br />

evaluate whether you need to use a baseless merge as follows.<br />

1. Open Source Code Explorer.<br />

2. Right-click the branched folder and then click Merge.<br />

3. In the Source Control Merge Wizard dialog box, click the Target branch dropdown<br />

list.<br />

If you do not see an entry for the branch you want to merge, this indicates that no<br />

merge relationship exists between these branches. In this case you must perform a<br />

baseless merge.<br />

Step 2 – Perform a Baseless Merge Using Tf.exe<br />

In this step, you use the TFS command line tool Tf.exe to perform a baseless merge.<br />

To perform a baseless merge:<br />

1. Set the Workspace for both branches by performing a “Get Latest” operation on the<br />

branches to be merged:<br />

a. Open Source Code Explorer.<br />

b. Right-click the folder for the first branch to be merged, and click Get Latest<br />

Version.<br />

c. Repeat the previous step for the second branch to be merged.<br />

Note that if no workspace is mapped, <strong>Visual</strong> <strong>Studio</strong> prompts you to select a folder on<br />

your local drive.<br />

2) Open a <strong>Visual</strong> <strong>Studio</strong> command window.<br />

3) Run the following Tf.exe command from the command line:<br />

Tf merge /baseless /recursive

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!