P4Web Release 2012.1 User Guide
[Getting Started]  [How To...]  [Browser Tips]  [Glossary]  [Road Map]  

Working with Labels

A label enables you to mark a set of file revisions for later access. For example, release engineers can label the file revisions that comprise a particular release of their program. The label can be assigned a meaningful name, like release2.0.1. The label can be used for syncing, branching, or comparing files.

To create a label, you must:

  1. Create the label spec, which defines the name of the label and the label view. The label view limits the files that can be tagged with the label.
  2. Perform an Add/Replace files... to apply the label to specified file revisions.
After you have created the label spec and tagged the revisions using Add/Replace files, you can use that label to access those files at a later date. See Creating and Editing Labels for additional information.

Accessing labels

To list labels, click the Labels tab. To display only the labels that contain tagged files in your current path, select the Labels with files in current path checkbox and click Filter.

Label Spec Detail

Clicking on a label name displays detailed information, including the label spec's fields. For information about these fields, see Creating and Editing Labels.

To list the files tagged by the current label, including each file's path in the depot, the filetype, and the revision number of the file, choose View files in label from the Action menu

From this page, you can use also use the Action menu to:

For information on creating a label without using a template, see Creating and Editing Label Specs.

Why not use changelist numbers?

Changelist numbers are an alternative to labels, if you need to refer to a group of files. Labels share certain important characteristics with changelist numbers, as both refer to particular file sets, and both refer to all the files in the set. But labels have some important advantages over changelist numbers:


Copyright 2012 Perforce Software. All rights reserved.