P4Web Release 2012.1 User Guide
[Getting Started]  [How To...]  [Browser Tips]  [Glossary]  [Road Map]  

Locking Files

The Lock command enables you to lock one or more of your opened files. Only files opened by you in the current workspace can be locked. (See also Unlocking Files.) When a file is locked, only the user who locked the file can submit changes to that file. Other users can open locked files in their workspaces, but they can't submit changelists that include locked files.

To lock one particular file:

  1. Click the file that you want to lock.
  2. Select Lock from the Action menu. The file is locked.
To select more than one file to lock:
  1. On the Files tab, select the directory that contains the files you want to lock. Select Lock... from the Action menu. P4Web displays a form that lets you choose files to lock.
  2. Select the files you want to lock.
  3. Click the Lock button. The files are locked.

The Lock Form

Selecting Lock... from the pulldown menu on the Files tab displays a form that lets you select files to lock.

If you have more than one pending changelist, you can choose to lock only the files associated with one changelist. To do this, check Lock files in changelist, select the changelist you want, and click Lock. This option locks the files in the selected changelist regardless of whether the files are in the current path. Alternatively, you can choose to restrict files to lock by path, or by selecting from a checklist. For more information, see Restricting Files Used in Commands.


Copyright 2012 Perforce Software. All rights reserved.