Restricting files that can be tagged
The View:
field in the p4 label
form
limits the files that can be tagged with a label. The default label view
includes the entire depot (//depot/...
). To prevent yourself
from inadvertently tagging every file in your depot, set the label’s
View:
field to the files and directories to be taggable,
using depot syntax.
Example Using a label view to control which files can be tagged
Bruno wants to tag the revisions of source code in the release 2.1
branch, which he knows can be successfully compiled. He types
p4 label jam-2.1.0
and uses the label’s
View:
field to restrict the scope of the label as
follows:
Label: jam-2.1.0 Update: 2018/03/27 13:07:39 Access: 2018/03/27 13:13:35 Owner: bruno Description: Created by bruno. Options: unlocked noautoreload View: //JamCode/release/jam/2.1/src/...
This label can tag only files in the release 2.1 source code directory.