p4 lock (graph)

Lock an opened file to prevent it from being submitted to the repo.

Syntax

p4 lock [-c changelist] [file ...]

Description

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.

Options

-c changelist

Lock only files included in changelist changelist

file ...

Limit the lock to the matching files