Lock an opened file to prevent it from being submitted to the repo.
p4 lock [-c changelist] [file ...]
The specified files are locked in the depot, preventing any user other than the current user on the current client from submitting changes to the files.
changelist
is specified, all open files are locked.-c
flag and a file specification are provided, only the matching files in the specified changelist are locked.
|
Lock only files included in changelist changelist |
|
Limit the lock to the matching files |