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

Locking Files

The Lock command allows you to lock one or more of your opened 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 on the file that you want to lock.
  2. Select Lock from the pulldown 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 pulldown menu. This brings up a form that lets you choose files to lock.
  2. Select the files you want to lock. See below for a description of the form.
  3. Click the Lock button. The files are locked.

The Lock Form

Selecting Lock... from the pulldown menu on the Files tab brings up a form that lets you choose which of your opened files to lock.

If you have more than one pending changelist you can choose to lock the files associated with only one of them. To do this, check "Lock files in changelist", select the changelist you want, and click the "Lock" button. This locks the files in the selected changelist whether or not they are in the current path.

Alternatively, you can chose to restrict files to lock by path, or by selecting from a checklist. For more information, see Restricting Files Used in Commands. Click the "Lock" button after selecting the files you want to lock.

Only the files you already have opened in your workspace can be locked. (See also Unlocking Files.)


Copyright 2007 Perforce Software. All rights reserved.