Previous Table of Contents Index Next
Perforce 2009.2: Command Reference



p4 lock
Synopsis
Lock an opened file against changelist submission.
Syntax
p4 [g-opts] lock [-c changelist#] [file ...]
Description
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.
This command is normally called with a specific file argument; if no file argument is provided, all open files in the default changelist are locked. If the -c changelist# flag is used, all open files matching the given file pattern in changelist changelist# are locked.
Options
-c changelist#
Usage Notes
Can File Arguments Use
Revision Specifier?
Related Commands
p4 opened | grep "*locked*"
 


Previous Table of Contents Index Next

Perforce 2009.2: Command Reference
Copyright 1999-2009 Perforce Software.