Lock and unlock files
You can use the -g
flag of the p4 lock
command to lock the files locally and globally. The -g
option must be used with the -c changelist
option.
This lock is removed by the p4 unlock -g
command or
by any submit command for the specified changelist.
Use the -x
option to the p4 unlock
command to unlock files that have the +l
filetype (exclusive
open) but have become orphaned. This is typically only necessary in the
event of an extended network outage between an Edge Server and the Commit Server.
To make p4 lock
on an Edge Server take global locks
on the Commit Server by default, set the server.locks.global
configurable to 1
. See Configurables in
Helix Core Command-Line (P4) Reference.