p4 unlock
Release the lock on one or more files.
Syntax
p4 [g-opts] unlock [-c change | -s shelvedchange | -x] [-f] [file ...]
p4 [g-opts] -c client unlock [-f ] -r
Description
Files might be locked on a server from a failed submit from a client workspace. To unlock those files:
This releases locks that were created explicitly
using the If the file is open in a pending changelist other than
If no changelist is specified,
If no file name is given, all files in the designated changelist are unlocked. By default, files can be unlocked only by the changelist owner, who must
also be the user who has the files locked. However, administrators on the commit server can use the p4 unlock -fx readme.html Note
Consider that when the administrator uses the -fx option, the administrator undoes a feature of the +1file type described at File type modifiers. The exclusive lock for editing of the +1file type is meant to prevent other users from being able to affect the file. For an alternative approach to managing the files of an absent user, see the Perforce Knowledge Base article, Reverting Another User's Files. |
||
|
If p4 unlock is called from an Edge Server, any corresponding files locked globally via p4 lock -g by that client will be unlocked on the Commit Server.
Options
|
Unlock files in pending changelist
|
|
The force option that allows an admin to unlock files that are locked by other users, if:
|
|
Commit/Edge: Unlock the files associated with the specified client that were
locked on the commit server due to a failed DVCS: Unlock the files associated with the specified client that were
locked on the remote server due to a failed |
|
If a file is locked in a pending shelved changelist, unlock it
and keep it within the |
|
In multi-server environments, unlock files that have the
|
|
See Global options, and in particular the -p and -c options. |
Usage Notes
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
No |
No |
|
Related commands
To lock files so other users can’t submit them |
|
To display all your open, locked files (UNIX) |
|