<HTML><HEAD><TITLE>P4Web User Guide - Adding New Files to a Perforce Depot</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>Adding New Files to a Perforce Depot</H3>
<P> To add new files to a Perforce <a href="defs.html#depot">depot</a>, first
you "open them for add", then you <a href="submit.html">submit</a> them. Files
opened for add aren't sent to the depot until you submit your pending changelist.
The files must be present in your workspace to be submitted. If you decide you
don't want to submit the files after all, use the <a href="revert.html">revert</a>
command to remove them from your pending changelist.
<P>Files can only be opened for add if:
<ul>
<li>They do not already exist in the depot
<li>They are in your client view
<li>You have permission to open them
</ul>
<P>There are two ways to open files for add:
<p>
<UL>
<LI> To open multiple files in a path, select the directory on the <B>Files</B>
tab and then select <b>Open for add...</b> from the <b>Actions</b> menu.
<LI> To open a single file, click on that file in the <B>Files</B> tab and then
select <b>Open for add...</b> from the <b>Actions</b> menu.
</UL>
<p> Selecting <b>Open for add...</b> takes you to the page where you <a href="addselect.html">select
files to add</a>. Enter a list of files you want to add, or have P4Web scan
your workspace looking for files to add.
<p> After you have selected the files to add, click <b>Continue</b>. Next, on
the <b>Open for Add</b> page, verify the files you selected and choose options
for how they will be opened. After choosing your options, click the <b>Open
for add</b> button.
<p> The <b>Open for add</b> command doesn't create new files. It just lists new
files in a <a href="pendingchangelists.html">pending changelist</a>. You can
create the new files before or after you run <b>open for add</b>. (However,
you don't have to worry about <a href="help_filetypes.html">filetype</a> selection
if you create them before running <b>open for add</b>.)
<h4>"Open for Add" options</h4>
<ul>
<p>
<li><b>Put opened files in changelist:</b>
If your client workspace has more than one
<a href="pendingchangelists.html">pending changelist</a>,
you can use this option to select a changelist.
<p>
<li><b>Specify filetype:</b> When you open a file for add, P4Web looks for the
file in your workspace. If it already exists, its default filetype is determined
from its content. If the file doesn't already exist in your workspace, it
is opened as a "text" file by default. The <B>Specify filetype</B> option
lets you choose a different filetype than the default. Check the box and select
the filetype and filetype modifier(s). See <a href="help_filetypes.html">Filetypes</a>
for a list of valid choices.
<p>
<li><b>Files:</b> This list is generated from your input when you <a href="addselect.html">selected
which files to add</a>. The checked files will be opened for add. Uncheck
any files you don't want to add.
</ul>
<P>
<HR>
<FONT SIZE=-1><I>
Copyright 2012 <A HREF="http://www.perforce.com">Perforce Software</A>.
All rights reserved.
</I></FONT>
</BODY></HTML>