Perforce Command Reference:   [Index] [Prev] [Next]


p4 labelsync

Synopsis

Synchronize a label with the current client contents

Syntax

p4 [g-opts] labelsync [-a -d -n] -l labelname [file[rev] ...]

Description

p4 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, p4 labelsync causes the label to reflect the contents of the whole client, by adding, deleting, and updating the label. If a file is given, p4 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.

A label that has its Options: field set to locked cannot be updated with p4 labelsync.

Options

-a Add files that match the file pattern arguments to the label without deleting any files, even if some of the files are deleted at their head revision.
-d Delete the named files from the label.
-n Display what p4 labelsync would do without actually performing the operation.
g_opts See global options section.

Usage Notes

Can File Arg Use
Revision Specifier?
Can File Arg
Use Revision Range?
Minimal
Access Level Required
Yes No open

Related Commands

To create or edit a label p4 label
To list all labels known to the system p4 labels



Perforce Command Reference:   [Index] [Prev] [Next]


Copyright 1999 Perforce Software.
Contact us at [email protected]
Last updated: 09/15/99 (Manual version 99.1.cr.6)