How to: Edit Labels

In Team Foundation source control, a label is a name applied to a specific set of revisions, which are also known as a snapshot build. For more information, see How to: Apply Labels. Team Foundation source control includes functionality for editing these labels as described in the following procedure.

Required Permissions

To perform these procedures, you must own the label or have the Administer shelved changes permission set to Allow. For more information, see Team Foundation Server Permissions.

To edit labels

  1. Locate the label you wish to edit. For more information, see How to: Find Labels.

  2. Select the labeled changeset you want to edit, and click Edit.

  3. In the Edit Label dialog box, add any notes in the Comment text box.

  4. In the Items listing, select the items in the changeset you want to edit, click Edit.

  5. Use the Items of type list to filter on the type you want.

  6. In the Items list, highlight items you want to edit in the changeset and click OK.

To edit a label from the command line

  1. Click Start, click All Programs and point to Microsoft Visual Studio 2005.

  2. Point to Visual Studio Tools and then click Visual Studio Command Prompt.

  3. Type cd path, where path is the directory containing the applicable workspace.

  4. Type tf label mylabel path /recursive.

    This command attaches the "mylabel" label to an existing label in the workspace version of the "path" folder and all of the files and folders it contains.

    Note   For a complete listing of the syntax for the label command, see Label Command (Team Foundation Source Control).

See Also

Reference

Label Command (Team Foundation Source Control)

Concepts

Working with Labels
Working with Source Control Changesets