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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• How to perform a baseless merge<br />

• How to resolve merge conflicts<br />

How to Use Labels<br />

Use labels to group a set of files and folders together for future operations. You can use<br />

labels for branching, merging, diffing, or getting files. A label provides a marker to which<br />

you can return when performing one of the above operations at a later date.<br />

To apply a label to a file or folder<br />

1. Right-click the file or folder in Source Control Explorer and then click Apply Label.<br />

2. In the Choose Item Version dialog box, modify your choice of file or folder, choose<br />

the version of the file or folder that you would like to label, and then click OK to<br />

apply the label.<br />

When applying labels, consider the following:<br />

• Labels are markers that you can apply to only one version of a file or folder at a<br />

time.<br />

• You can apply multiple labels to a version of a file or folder.<br />

• Labels that you apply by using Source Control Explorer are automatically scoped<br />

to the root folder of the team project <strong>with</strong>in which they are created. You cannot<br />

create two labels <strong>with</strong> the same name <strong>with</strong>in the same scope.<br />

• Labels are un-versioned objects and there is no history associated <strong>with</strong> them.<br />

• Labels are applied instantly, and they do not require a check-in<br />

• <strong>Team</strong> Build automatically assigns a label to the set of files associated <strong>with</strong> each<br />

build that it creates.<br />

• Labels are not applied to deleted items; this means that merge-by-label will not<br />

pick up deleted files.<br />

To locate an existing label<br />

1. On the File menu, point to Source Control, point to Label, click Find Label, and<br />

then navigate to the label.<br />

2. After finding the label, you can modify it or delete it from <strong>with</strong>in the Find Label<br />

dialog box.<br />

Additional Resources<br />

• For more information about using labels, see “Working <strong>with</strong> Labels” at<br />

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

• For more information about applying labels, see “How to: Apply Labels” at<br />

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

How to Branch<br />

To create a branch, either use Source Control Explorer or use the tf branch command<br />

from the command line.

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

Saved successfully!

Ooh no, something went wrong!