<TITLE>Adding New Files to a Perforce Depot</TITLE> <P> To add new files to a Perforce <a href="defs?help#depot">depot</a>, first you "open them for add", then you <a href="submit?help">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?help">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?help">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?help">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?help">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?help">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?help">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?help">selected which files to add</a>. The checked files will be opened for add. Uncheck any files you don't want to add. </ul>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 12234 | Matt Attaway |
Rejigger P4Web project in preparation for official sunsetting The bin directory contains the last official builds of P4Web from the Perforce download site. P4Web is soon to be completely sunsetted; these builds are here for folks who don't want to build their own. To better handle the archived builds the source code has been moved into a separate src directory. |
||
//guest/perforce_software/p4web/Help/add.html | |||||
#1 | 8914 | Matt Attaway | Initial add of the P4Web source code |