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.

• Source<br />

• Main – Integration Branch<br />

o Source<br />

o Other Asset Folders<br />

• Releases – Folder for release branches, branched from Main<br />

o Release 1 – Maintenance Branch<br />

• Source<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 />

Consider Using the Candidate or Preview Switch to Double-Check Before<br />

Merging<br />

Prior to performing a merge, use the candidate or preview switch to double-check your<br />

merge results. Although this option is only available from the command line, it is<br />

extremely beneficial to know which files and which versions will be merged when you<br />

perform the merge command. For example, this can help to ensure that the scope of your<br />

merge is not significantly greater than you were expecting and to make sure that you<br />

understand the impact of your merge command. For large merges, the merge report also<br />

helps you to divide the work between individuals or teams.<br />

To preview the results of a merge, use the Tf.exe command-line tool <strong>with</strong> the merge<br />

command, together <strong>with</strong> the preview or candidate switches. For example:<br />

Tf merge main/source development/feature/source /preview<br />

The preview switch shows a preview of the merge, while the candidate switch prints a<br />

list of all changesets in the source that have not yet been merged into the destination. The<br />

list includes the changeset ID that has not been merged and other basic information about<br />

that changeset.<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

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

Saved successfully!

Ooh no, something went wrong!