Locking and unlocking 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.