<HTML><HEAD><TITLE>P4Web User Guide - Locking Files</TITLE></HEAD><BODY><FONT SIZE=-1><B>P4Web Release 2012.1 User Guide</B></FONT><BR>
<FONT SIZE=-1><B><A HREF="quickstart.html">[Getting Started]</A> <A HREF="howto.html">[How To...]</A> <A HREF="tips.html">[Browser Tips]</A> <A HREF="defs.html">[Glossary]</A> <A HREF="roadmap.html">[Road Map]</A> </B></FONT><BR>
<H3>Locking Files</H3>
<P> The <B>Lock</B> command enables you to lock one or more of your <a href="defs.html#openedfiles">opened
files</a>. Only files opened by you in the current workspace can be locked.
(See also <a href="unlock.html">Unlocking Files</a>.) 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.
<P> <B>To lock one particular file:</B>
<OL>
<LI> Click the file that you want to lock.
<LI> Select <b>Lock</b> from the <b>Action</b> menu. The file is locked.
</OL>
<B>To select more than one file to lock:</B>
<OL>
<LI> On the <B>Files</B> tab, select the directory that contains the files you
want to lock. <lo> Select <B>Lock...</B> from the <b>Action</b> menu. P4Web
displays a form that lets you choose files to lock.
<LI> Select the files you want to lock.
<li>Click the <B>Lock</B> button. The files are locked.
</OL>
<h4>The Lock Form</h4>
<p> Selecting <b>Lock...</b> from the pulldown menu on the <b>Files</b> tab displays
a form that lets you select files to lock.
<p> If you have more than one <a href="pendingchangelists.html">pending changelist</a>,
you can choose to lock only the files associated with one changelist. To do
this, check <b>Lock files in changelist</b>, select the changelist you want,
and click <b>Lock</b>. 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 <a href="restrictfiles.html">Restricting Files Used
in Commands</a>.
<P>
<HR>
<FONT SIZE=-1><I>
Copyright 2012 <A HREF="http://www.perforce.com">Perforce Software</A>.
All rights reserved.
</I></FONT>
</BODY></HTML>