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.

• For more information about merging, see “How to: Merge Files and Folders” at<br />

http://msdn2.microsoft.com/en-us/library/ms181428(VS.80).aspx<br />

• For additional descriptions of how to branch and merge in <strong>Visual</strong> <strong>Studio</strong> 2005, see<br />

“Branching and Merging <strong>Team</strong> <strong>Foundation</strong> Source Control” at<br />

http://msdn2.microsoft.com/en-us/library/ms181423(VS.80).aspx<br />

When Renames Are Part of the Merge, Pay Close Attention to the Path<br />

That the Tool Recommends<br />

When renames are part of the merge, pay close attention to the path that the tool<br />

recommends and make changes as appropriate. All renames are marked as conflicts. The<br />

merge algorithm used by TFS tries to calculate the best target path when a rename is<br />

being merged over. In some cases the default target path is not the desired path, so you<br />

should always double-check prior to committing the merged file.<br />

Additional Resources<br />

• For an introduction to branching and merging, see “Branching and Merging Primer”<br />

at http://msdn2.microsoft.com/en-us/library/aa730834(VS.80).aspx<br />

• For more information about branching, see “How to: Branch Files and Folders” at<br />

http://msdn2.microsoft.com/en-us/library/ms181425(VS.80).aspx<br />

• For more information about merging, see “How to: Merge Files and Folders” at<br />

http://msdn2.microsoft.com/en-us/library/ms181428(VS.80).aspx<br />

• For additional descriptions of how to branch and merge in <strong>Visual</strong> <strong>Studio</strong> 2005, see<br />

“Branching and Merging <strong>Team</strong> <strong>Foundation</strong> Source Control” at<br />

http://msdn2.microsoft.com/en-us/library/ms181423(VS.80).aspx<br />

Be Careful When Resolving Merge Conflicts<br />

Be careful when merging because it is easy to make mistakes that may result in build<br />

instability. When merging files:<br />

• Double-check the code you are merging before committing the merges.<br />

• Test that you can compile the resulting merged file before checking it back into<br />

source control.<br />

• Verify that the associated unit tests run and succeed before checking the merged file<br />

back into source control.<br />

• Make sure that you understand the nature of the changes made by another developer.<br />

If you are in doubt about merging some lines, talk to the developer who made the<br />

other changes so that you are sure of their purpose and to get a second view on the<br />

impact of your merge.<br />

After you have finished merging, compile the resulting source and run unit tests to test<br />

for major breaks.

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

Saved successfully!

Ooh no, something went wrong!