Synchronize a label with current client contents
Labelsync causes the named label to reflect the current contents of the client. It records the last revision of each file taken onto the client. The label's name can subsequently be used in a revision specification as @label to refer to the revision of a file as stored in the label.
Without a file argument, labelsync causes the label to reflect the contents of the whole client, by adding, deleting, and updating the label. If a file is given, labelsync updates only that named file. If the file argument includes a revision specification, then that revision is used instead of the revision taken by the client.
The -a flag causes labelsync to add the named file to the label; no files will be deleted from the label.
The -d deletes the named file from the label, regardless of revision.
The -n flag lists how the label would be affected, but doesn't actually update the label.
A label that has its Options: set to 'locked' cannot be updated.