Perforce Lock

   

This action allows you to lock files in your Perforce depot.

 

p4 command: lock

 

"Lock an opened file against changelist submission.  Locking files prevents all other users from submitting changes to those files. If the files are already locked by another user, p4 lock fails. When the user who locked a particular file submits the file, the lock is released."

 

Options:

 

Changelist (-c) : Lock only files included in the specified changelist

 

Depot Files:  specify files to lock using the standard Perforce depot syntax (eg. //depot/folder/.../*.txt)

 

Override Start in Directory: use this option to specify a different directory from where p4 is run from

 

Override Defaults: Override Perforce Global Options