Use p4 tag to tag specified file revisions with a label. A
labelname is required. If a label named
labelname does not exist, it is created automatically. If the label already exists, you must be the
Owner: of the label and the label must be
unlocked in order for you to tag or untag files with the label. (Use
p4 label to change label ownership or lock status.)
If the file argument does not include a revision specification, the head revision is tagged with the label. If the file argument includes a revision range specification, only files with revisions in that range are tagged. (If more than one revision of the file exists in the specified range, the highest revision in the specified range is tagged.)