How to Use Labels

- J.D. Meier, Jason Taylor, Alex Mackman, Prashant Bansode

Use labels to group a set of files and folders together for future operations. You can use labels for branching, merging, diffing, or getting files. A label provides a marker to which you can return when performing one of the above operations at a later date.

To apply a label to a file or folder
  1. Right-click the file or folder in Source Control Explorer and then click Apply Label.
  2. In the Choose Item Version dialog box, modify your choice of file or folder, choose the version of the file or folder that you would like to label, and then click OK to apply the label.

When applying labels, consider the following:
  • Labels are markers that you can apply to only one version of a file or folder at a time.
  • You can apply multiple labels to a version of a file or folder.
  • Labels that you apply by using Source Control Explorer are automatically scoped to the root folder of the team project within which they are created. You cannot create two labels with the same name within the same scope.
  • Labels are un-versioned objects and there is no history associated with them.
  • Labels are applied instantly, and they do not require a check-in
  • Team Build automatically assigns a label to the set of files associated with each build that it creates.
  • Labels are not applied to deleted items; this means that merge-by-label will not pick up deleted files.

To locate an existing label
  1. On the File menu, point to Source Control, point to Label, click Find Label, and then navigate to the label.
  2. After finding the label, you can modify it or delete it from within the Find Label dialog box.

Additional Resources

Last edited Jul 31, 2007 at 1:28 PM by prashantbansode, version 8

Comments

No comments yet.