Previous Table of Contents Index Next
Perforce 2009.2: Command Reference



p4 labelsync
Synopsis
Synchronize a label with the contents of the current client workspace.
Syntax
p4 [g-opts] labelsync [-a -d -n] -l labelname [file[revRange]...]
Description
p4 labelsync causes the named label to reflect the current contents of the client workspace by tagging the last revision of each file synced into the workspace with the label name. The label name can subsequently be used in a revision specification as @label to refer to the revision of the file that was tagged with the label.
Without a file argument, p4 labelsync causes the label to reflect the contents of the client workspace by adding, deleting, and updating the set of files tagged with the label.
If a file is given, p4 labelsync updates the tag for only that named file. If the file argument includes a revision specification, the client workspace view is ignored; the specified revision is used instead of the revision existing in the workspace. If the file argument includes a revision range, then only the highest revision in that range is used.
Only the Owner: of an unlocked label can use p4 labelsync to tag files with that label.
A label that has its Options: field set to locked cannot be updated with p4 labelsync.
Options
-l labelname
Display what p4 labelsync would do without actually performing the operation.
Usage Notes
Can File Arguments Use
Revision Specifier?
By default, p4 labelsync operates on the revisions of files last synced to your client workspace. To tag the head revisions of files (or the highest revision in a specified range), use p4 tag.
Related Commands
 


Previous Table of Contents Index Next

Perforce 2009.2: Command Reference
Copyright 1999-2009 Perforce Software.