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, then that 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 may use
p4 labelsync to tag files with that label.