<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Perforce Public Depot: Tutorial</title> <!-- no htdig-keywords tag in this file --> <!-- no keywords tag in this file --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="css/pure.css" type="text/css"> <link rel="stylesheet" href="css/depot.css" type="text/css"> </head> <body> <!-- div for entire page --> <div id="outer"> <div id="page-top"><!-- frames the logo and search --> <!-- logo --> <div id="logo"> <a href="index.html"><img src="images/site_logo.gif" alt="Perforce Public Depot" width="219" height="50"></a> </div> <div id="search"><!-- search section --> <form method="get" action="http://www.google.com/search"> <div><!-- needed so invisible field will validate --> <input type="hidden" name="sitesearch" value="public.perforce.com"> </div><!-- silly invisible field div --> <ul class="search-box"> <li class="left"><input type="text" size="40" name="q" value="" class="search-form"></li> <li class="middle"><input type="submit" value="Search" class="search-button"></li> <li class="right" style="color: black;">Powered by Google</li> </ul> </form><!-- top navbar search form --> </div><!-- end search section --> </div> <!-- end div id page-top --> <!-- start site content --> <div id="main-body"> <!-- navbars --> <div id="navbar-outer"> <ul class="navbar"> <li class="nav-top"><a href="index.html" title="Home">Home</a></li> <li><a href="sitemap.html" title="Site Map">Site Map</a></li> <!-- li><a href="search.html" title="Search">Search</a></li --> <li><a href="browse.html" title="How to Browse" >How to Browse</a></li> <li><a href="contribute.html" title="How to Contribute">How to Contribute</a></li> <li><a href="review.html" title="Change Review Email">Change Review Email</a></li> </ul> </div> <!-- end id.navbars --> <div id="content-outer"> <div id="content"> <!-- Content starts here --> <h1>The Perforce Public Depot Tutorial</h1> <h3>About This Tutorial</h3> <p>The instructions in this tutorial are for registered Public Depot contributors only. See the Public Depot <a href="index.html">home page</a> for more information. </p> <p>Because the bulk of the Public Depot is populated by Perforce-related content, we expect the typical contributor to be an experienced Perforce user. However, Jam/MR contributors may not necessarily be familiar with Perforce, so this tutorial was written to be useful to new Perforce users as well as experienced users. </p> <p> <a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref"><img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> The tutorial examples use <b>p4</b>, Perforce's command line interface. You can click on the book icon next to each command to go to the command reference section that describes it. </p> <p>Complete documentation for all Perforce commands and programs is available on our <a href="http://www.perforce.com/perforce/technical.html"> technical documentation</a> page. </p> <p>If you're using <b>P4Win</b>, our Windows GUI, you'll want to have a copy of our <i><b>p4</b> to <b>P4Win</b> Translation Guide</i> handy so you can look up the GUI equivalents of the commands shown here. The <i>Translation Guide</i> can be downloaded from our <a href="http://www.perforce.com/perforce/technical.html"> technical documentation</a> page. </p> <div class="hr-dotted"></div> <h3><a name="setup"></a>Setting Up Your Environment</h3> <p>Before you can use Perforce with the Public Depot you'll need to set these environment variables: </p> <table> <tr> <td valign="top"><b>P4PORT</b></td><td>To use the Public Depot, set this to <b>public.perforce.com:1666</b></td> </tr> <tr> <td valign="top"><b>P4USER</b></td><td>Set this to your registered Public Depot user name. For example, Cary Grant's registered user name is <b>cary_grant</b>. </td> </tr> <tr> <td valign="top"><b>P4PASSWD</b></td><td>Set this to your Public Depot password.</td> </tr> <tr> <td valign="top"><b>P4CLIENT</b></td><td>Set this to your client workspace name. You can use your Public Depot uuser namefor your workspace name as well. E.g., Cary Grant could name his client workspace <b>cary_grant</b>. </td> </tr> </table> <p>There are many ways to set environment variables. Two of those ways are shown here, as examples: </p> <ol> <li>Unix users running <b>csh</b> can use <b>setenv</b>: <code> <b> <br>% setenv P4PORT public.perforce.com:1666 <br>% setenv P4USER cary_grant <br>% setenv P4PASSWD thornhill <br>% setenv P4CLIENT cary_grant </b> </code> </li> <li>Windows users can use <b>p4 set</b> <a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/set.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> to set Perforce environment variables in the Windows registry: <code> <b> <br>C:\> p4 set P4PORT=public.perforce.com:1666 <br>C:\> p4 set P4USER=cary_grant <br>C:\> p4 set P4PASSWD=thornhill <br>C:\> p4 set P4CLIENT=cary_grant </b> </code> </li> </ol> <div class="hr-dotted"></div> <h3>Creating Your Client Workspace</h3> <p>The first thing you do when you use Perforce is set up a client workspace on your local machine. This setup is only done once. Bring up the client specification form editor, using: </p> <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/client.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 client</code></b> </p> <p>In the editor, you'll see something like the form shown below. The text shown in <span class="red">red</span> is what you <i>must</i> edit to set up your client workspace. The text in <span class="green">green</span> may be edited if you wish: </p> <blockquote> <pre>Client: cary_grant Description: <span class="green">Created by cary_grant.</span> Root: <span class="red">C:\</span> Options: <span class="red">nomodtime noclobber</span> View: <span class="red">//public/... //cary_grant/...</span> <span class="red">//guest/... //cary_grant/...</span> </pre> </blockquote> <ul> <li>In the <i>Root</I> field, put the root of the directory you will be using as a workspace on your local filesystem. (The directory doesn't have to exist yet; Perforce will create it for you.) For the sake of this tutorial, we'll Cary Grant's workspace root is <b>c:\ws</b>. </li> <li>In the <i>Options</i> field, add the word <b>locked</b> to prevent other users from modifying your workspace specification. </li> <li>The <i>View</i> field is a list of "view mapping" lines. The left side of each line is a depot directory path, and the right side shows how that path will be mapped into your workspace. The client name on the right side of each mapping stands for the workspace root. For working in the Public Depot you most likely need only map to your guest branch as shown below. (If you are sharing development with another Public Depot contributor, and wish to work in his or her guest branch, see <a href="#sharing">"Sharing Development"</a>.) </li> </ul> <p>When you have modified your client spec, save it and exit the editor. Here's an example of a completed client workspace specification: </p> <blockquote> <pre> Client: cary_grant Description: <span class="green">Cary Grant's workspace.</span> Root: <span class="red">C:\ws</span> Options: <span class="red">nomodtime noclobber locked</span> View: <span class="red">//guest/cary_grant/... //cary_grant/...</span> </pre> </blockquote> <div class="hr-dotted"></div> <h3><a name="createbr"></a>Creating Your Guest Branch</h3> <p>When you register as a Public Depot contributor, you are given write access to your guest branch, but your guest branch is not actually created for you (because we don't know which projects you want to work on). So you must create your own guest branch. It will start out as a clone of one of the projects in the <b>//public</b> path, and you will submit additions or changes to it. </p> <p>For example, if Cary Grant wanted to contribute enhancements to some of the Perforce utilities, he'd start out by branching the <b>//public/perforce/utils</b> project into his <b>//guest/cary_grant</b> branch. Here's how he'd do it: </p> <p>First, open the files for branching: </p> <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/integrate.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 integ -v //public/perforce/utils/... //guest/cary_grant/perforce/utils/... </code></b> </p> <p>(The "<b>-v</b>" flag speeds up the operation by opening "virtual" files -- that is, these files are opened, but will not be copied to and from your workspace.) </p> <p>Next, <a href="#submitting">submit</a> the opened files: </p> <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/submit.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 submit</code></b> </p> <p>Note that these two commands haven't moved any files in or out of Cary Grant's workspace. All they've done is created a set of files in the Public Depot's <b>//guest/cary_grant/perforce/utils</b> path that exactly mirror the files in <b>//public/perforce/utils</b>. </p> <div class="hr-dotted"></div> <h3><a name="filling"></a>Filling Your Workspace</h3> <p>Once you have <a href="#setup">set up your workspace</a> and <a href="#createbr">created your guest branch</a>, you can fill your workspace with files from the depot using: </p> <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/sync.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 sync</code></b> </p> <p>This copies depot files to your workspace. For example, when Gary Grant runs <b>p4 sync</b>, files from the <b>//guest/gary_grant</b> branch are copied into his local <b>c:\ws</b> directory. When it's done, his workspace is "in sync" with the depot. </p> <p><i>Note:</i> </p> <ul> <li>Synced files have read-only permission in your workspace (until you start <a href="#working">working on them</a>). </li> <li>Perforce will sync to the head revisions of depot files, by default. </li> <li>If you run <b>p4 sync</b> more than once, nothing will happen the second time unless there are newer versions in the depot that are not yet in your workspace. </li> <li>If you are running <b>p4 sync</b> and you get disconnected, you can run it again to continue filling your workspace. Files that have already been copied to your workspace will not be copied a second time. </li> </ul> <div class="hr-dotted"></div> <h3><a name="working"></a>Working on Files</h3> <p>Once you have <a href="#filling">filled your workspace</a>, you can work on files. You can edit files, add files, delete files, and revert files to their original state. </p> <p><i>Note:</i> </p> <ul> <li>None of the commands described here affect the files in the depot. All they do is allow you to work on files. Perforce tracks the files you're working on in a <i>changelist</i>. As you open files, they go on your changelist. You have to <a href="#submitting">submit your changelist</A> to get your changes into the depot. </li> </ul> <dl class="project"> <dt>Editing files</dt> <dd> <p>To edit files, use the <b>p4 edit</b> command on them. For example, here Cary Grant opens two P4DB source files for editing: </p> <p><b><code>cd c:\ws\perforce\utils\p4db</code></b> </p> <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/edit.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 edit index.cgi chb.cgi</code></b> </p> <p>Now these files are "opened for edit". Once opened for edit, files become wwritable so you can edit them, or modify them by any other means. </p> </dd> <dt>Adding new files</dt> <dd> <p>To add new files, create them first, with an editor or other tool. You must create them in a directory under your workspace root. Then use the <b>p4 add</b> command on them. </p> <p>For example, Cary Grant is adding a new file to the P4DB suite. First he creates the file with <b>vi</b>, then adds it: </p> <p><b><code>cd c:\ws\perforce\utils\p4db</code></b> </p> <p><b><code>vi jbv.cgi</code></b> </p> <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/add.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 add jbv.cgi</code></b> </p> <p><b>p4 add</b> "opens files for add", which tells Perforce you plan to add them to the depot. </p> </dd> <dt>Deleting files</dt> <dd> <p>To delete files: </p> <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/delete.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 delete fdv.cgi fv.cgi flv.cgi</code></b> </p> <p>This removes the files from your workspace, and makes them "open for delete", which tells Perforce you plan to delete them from the depot. <b>p4 delete</b> only works on files put in your workspace by <b>p4 sync</b>. </p> </dd> <dt>Reverting files</dt> <dd> <p>If you ever want to undo changes you've made to any of your opened files, use <b>p4 revert</b>. For example: </p> <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/revert.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 revert fdv.cgi flv.cgi</code></b> </p> <p>This restores files to their original states and takes them off your changelist. </p> <p><span class="red"><i>Warning: <b>p4 revert</b> is IRREVERSIBLE!</i></span> When you revert a file that was opened for edit, Perforce replaces the file in your workspace with a fresh, read-only version directly from the depot. Any edits you've made to the file will be lost! </p> <p><i>Note:</i> </p> <ul> <li>When you revert files opened for delete, Perforce restores them to your workspace.</li> <li>When you revert files opened for add, Perforce doesn't do anything to the files; it simply takes them off your changelist. The new files you created in your workspace will still be there. </li> </ul> </dd> <dt>Submitting files</dt> <dd> <p>When you are satisfied with the changes in your workspace, you can <a href="#submitting">submit</a> them to the depot with: </p> <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/submit.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 submit</code></b> </p> </dd> </dl> <div class="hr-dotted"></div> <h3><a name="pulling"></a>Pulling Changes into Your Branch</h3> <p>The files in your guest branch are insulated from the files in the <b>//public</b> path they were branched from. From time to time, files in <b>//public</b> will be added as Public Depot project curators integrate changes from guest branches. If the project you made your branch from gets updated, you will need to pull those updates into your own guest branch. </p> <p>So Cary Grant, for example, has been working on his P4DB enhancement. As you recall, his guest branch files were originally branched from the <b>//public/perforce/utils</b> path. To find out if any changes need to be pulled from that path into his own guest branch, Cary uses: </p> <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/integrate.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 integ -n //public/perforce/utils/... //guest/cary_grant/perforce/utils/... </code></b> </p> <p>If he sees files listed, he knows he'll have to pull changes into his guest branch. Here's how he does it: </p> <ol> <li>He submits (or reverts) any opened files in his workspace.</li> <li>He opens files for integration in his workspace using: <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/integrate.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 integ //public/perforce/utils/... //guest/cary_grant/perforce/utils/... </code></b> </p> <p>(This is the same as the command above, without the <b>-n</b>. It's also exactly the same as the command that created his branch, without the <b>-v</b>.) </p> </li> <li>He <a href="#resolving">resolves</a> the opened files using: <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/resolve.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 resolve </code></b> </p> </li> <li>He submits the opened, resolved files with: <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/submit.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 submit </code></b> </p> </li> </ol> <p>At this point, Cary Grant's guest branch is fully integrated. That is, all changes in <b>//public/perforce/utils</b> have been pulled into <b>//guest/cary_grant/perforce/utils</b>. </p> <div class="hr-dotted"></div> <h3><a name="submitting"></a>Submitting A Changelist</h3> <p>As you open files with <b>p4 edit, p4 add,</b> and <b>p4 delete</b>, you are building up a <i>changelist</i>. A changelist is also created when you open files with <b>p4 integ</b>. However, until you <i>submit</i> your changelist, files in the depot are unaffected by your intended changes. "Submitting" sends modified file content from your workspace to the depot, and updates depot versions of the files. </p> <p>To submit your changelist, use: </p> <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/submit.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 submit</code></b> </p> <p>This puts you in an editor form, where you must replace the string "<b><enter description here></b>" with a valid description of the changes you are submitting. Cary Grant's changelist form looks like: </p> <blockquote> <pre> Change: new Client: cary_grant User: cary_grant Status: new Description: <span class="red">Added job searching to the P4DB browser.</span> Files: //guest/cary_grant/perforce/utils/p4db/index.cgi # edit //guest/cary_grant/perforce/utils/p4db/chb.cgi # edit //guest/cary_grant/perforce/utils/p4db/jbv.cgi # add //guest/cary_grant/perforce/utils/p4db/fv.cgi # delete </pre> </blockquote> <p>When you are done typing the description, save the file and exit the editor. Your changelist will be submitted and the depot files updated. </p> <p>Note that all files in all guest branches are readable to everyone, so as soon as you submit your changelist, other contributors can see and review your changes. </p> <div class="hr-dotted"></div> <h3><a name="resolving"></a>Resolving Files</h3> <p>Resolving is how you merge specific changes from one file to another. For each file, you'll see stats like: </p> <blockquote> <p><code>c:\ws\perforce\utils\p4db\index.cgi - merging //public/perforce/utils/p4db/index.cgi#7</code> </p> <p><code>Diff chunks: 0 yours + 2 theirs + 0 both + 0 conflicting</code> </p> </blockquote> <p>...and a prompt like </p> <blockquote> <p><code>Accept(a) Edit(e) Diff(d) Merge (m) Skip(s) Help(?) [at]:</code> </p> </blockquote> <p>Follow the prompt's advised action by hitting return. The prompt shows <code>[</code>in square brackets<code>]</code> which action it advises you to take. </p> <p><i>Note:</i> </p> <ul> <li>For each file resolved, Perforce does a 3-way merge between files it refers to as "yours", "theirs", and "the base". The merged result is written to your workspace file. <ul> <li>If you are integrating new changes from one branch to another, "yours" is the target file in your workspace, "theirs" is the newer file in the originating branch, and "the base" is the version of the file in the originating branch that was last integrated from. </li> <li>If you are syncing opened workspace files with newer depot files, "yours" is the target file in your workspace, "theirs" is the newer file in the depot, and "the base" is the version of the file you had when you opened it for edit. </li> </ul> </li> <li>If there are no conflicting diffs, the merged result will be saved in your workspace file, and the <b>resolve</b> program will go on to the next file. </li> <li>If there <i>are</i> conflicting diffs, you will be put into an editor to resolve the conflicts. The conflicts will be marked by lines beginning with <code>>>>></code>, <code>====</code>, or <code><<<<</code>. For example: <blockquote> <p><span class="red"> >>>> ORIGINAL</span> </p> <p>i = i + j </p> <p><span class="red"> ==== THEIRS</span> </p> <p>if ( i < n ) then i = i + j </p> <p><span class="red"> ==== YOURS</span> </p> <p>if ( i <= n ) then i = i + j </p> <p><span class="red"> <<<< </span> </p> </blockquote> <p>While in the editor, your job is to look for the conflicts, remove the conflict markers (shown here in <span class="red">red</span>), and modify the remaining text in a way that makes sense. When you exit the editor, the prompt will advise you to accept the merged result. </p> </li> <li>You can diff files while you're in the <b>resolve</b> program. At the prompt, type <b>?</b> and you will be shown the diff commands. </li> <li>You can choose to skip any file and re-run <b>resolve</b> on it later. Your workspace file will be untouched if you do this. </li> </ul> <div class="hr-dotted"></div> <h3>Publishing Your Changes</h3> <p>As a contributor, you may only submit changes to your own branch in the <b>//guest</b> depot. To have your changes "published", you must ask a project curator to integrate them from your branch to the <b>//public</b> depot. </p> <p>To request publication: </p> <ul> <li>Make sure your guest branch is fully up to date with the project it was integrated from. (See <a href="#pulling">Pulling Changes into Your Branch</a>.) </li> <li>Send email to the project curator asking to have your changes published. The curator's name and email address can be found in the <b>index.html</b> page for the project. </li> </ul> <div class="hr-dotted"></div> <h3><a name="sharing"></a>Sharing Development</h3> <p>If you and other registered Public Depot contributors would like to share development on a project, you can designate one of your guest branches as a shared branch. The owner of the shared branch should email <SCRIPT TYPE="text/javascript"> <!-- user='opensource'; domain='perforce.com'; addr=user + '@' + domain; document.write('<A HREF="mailto:' + addr + '">' + addr + '<\/A>'); --> </SCRIPT> requesting that his or her branch be opened for shared development, and naming the other contributors who should be granted write access to that branch. </p> <p>For contributors working in a shared branch, all of the above instructions apply, with these caveats: </p> <ul> <li>Each contributor should use <b>p4 client</b> to set his or her client view to the shared guest branch instead of to his/her own guest branch. </li> <li>Although you are all working in the same shared guest branch, each of you still has your own client workspace. Your changes aren't actually shared until you submit your changelist into the depot. </li> <li>When someone else submits a changelist, you'll need to re-sync your workspace (as described in <a href="#filling">Filling Your Workspace</a>) and, if necessary, <a href="#resolving">resolve</a> opened files. </li> <li>If you try to submit a changelist without having re-synced and resolved, your submit will fail. This isn't a problem, it just does this to give you a chance to resolve files first. The failed submit assigns a number to the pending changelist. After you resolve your opened files, you must give the changelist's number on the submit command, e.g: <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/submit.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 submit -c 1453</code></b> </p> </li> </ul> <div class="hr-dotted"></div> <h3>Being A Project Curator</h3> <p>If you are a curator of a project in the Public Depot (and you know who you are) your first responsibility is to maintain an <b>index.html</b> file at the top level of the project subdirectory in the <b>//public</b> path. This document should at least describe the purpose of the project, and list your name and email address. (Or, for spam-proofing, your decodable email address.) </p> <p>Your second responsibility is to "publish" contributions to the project by integrating changes from guest branches into the <b>//public</b> project path. You'll receive email requests to publish contributions. When you receive a request: </p> <ol> <li>Make sure the contributor's guest branch is up to date with the public project path. </li> <li>Review the changes in question for functionality and appropriateness for your project. </li> <li> Integrate the changes from the guest branch into the public project path. </li> </ol> <p>For example, say you are the curator of the <b>//public/perforce/utils</b> project and you get email from Cary Grant requesting that you publish his enhancements to the P4DB browser. Here are some tips for reviewing and integrating his contribution: </p> <ul> <li>Note that to integrate any contributor's changes into <b>//public/perforce/utils</b>, you'll need to have that path mapped in your client workspace view. </li> <li>Never integrate more than one contribution at a time. (E.g., don't combine Cary Grant's P4DB contribution with James Mason's FAQ contribution.) </li> <li>Start by taking a look at Cary's changelist descriptions. You can list them with: <blockquote> <p><b><code>p4 changes //guest/cary_grant/...</code></b> </p> </blockquote> </li> <li>To make sure Cary has integrated all published changes into his guest path, add <b>//guest/cary_grant/...</b> to your client view and try this: <blockquote> <p><b><code>p4 flush //guest/cary_grant/perforce/utils/...</code></b> </p> <p><b><code>p4 integ -n //public/perforce/utils/... //guest/cary_grant/perforce/utils/...</code></b> </p> </blockquote> <p>If this shows unintegrated files, send Cary mail telling him he needs to <a href="#pulling">pull</a> the latest <b>//public/perforce/utils</b> changes into his guest branch before you can publish his contribution. (<b>p4 flush</b> simulates a sync without copying files to your workspace.) </p> </li> <li>Before opening the <b>//public/perforce/utils</b> files for integration, remember to sync first: <blockquote> <p><b><code>p4 sync //public/perforce/utils/...</code></b> </p> <p><b><code>p4 integ //guest/cary_grant/perforce/utils/... //public/perforce/utils/... </code></b> </p> </blockquote> </li> <li>Do a "safe" resolve, and make sure all merges could be done without conflicts: <blockquote> <p><b><code>p4 resolve -as //public/perforce/utils/...</code></b> </p> <p><b><code>p4 resolve -n //public/perforce/utils/...</code></b> </p> </blockquote> <p>The second resolve should show that everything is already resolved. If this is not the case, either Cary did something wrong pulling in the latest changes into his branch, or you aren't synced to the latest <b>//public/perforce/utils</b> files. </p> </li> <li>Diff the opened files in your workspace after they've been resolved and before you submit them. You can use: <blockquote> <p><a href="http://www.perforce.com/perforce/doc.052/manuals/cmdref/diff.html"> <img alt="Command Reference" src="http://www.perforce.com/images/openbook.gif"></a> <b><code>p4 diff</code></b> </p> </blockquote> <p>to see exactly what you'd be changing if you submitted this contribution. </p> </li> </ul> <div class="hr-dotted"></div> <p class="stored-file">You're browsing a file stored as <code>$Id: //public/tutorial.html#17 $</code></p> <!-- Content ends here --> </div><!-- id content --> </div><!-- id content-outer --> </div><!-- id main-body --> <!-- Copyright and bottom bar --> <div id="copyright"> Copyright © 1996, 2007 Perforce </div> </div> <!-- id outer --> </body> </html>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#21 | 9981 | laurette | Obsolete, deleting. | ||
#20 | 6283 | Sam Stafford | Update redirects to use new short URLs. | ||
#19 | 6276 | Sam Stafford | Change old pages to http://public.perforce.com/wiki/ redirects. | ||
#18 | 6042 | michael |
Product reference and link changes: Jam/MR -> Jam P4Win -> P4V doc.052 -> doc.current |
||
#17 | 6025 | rlo |
Public Depot Redesign goes live * Skin matches KB and latest WWW skin * Rudimentary search mechanism based on google * did this already, but made some big mistakes and it was easier to obliterate and start over * about the above: yikes! |
||
#16 | 5253 | jan | Updated ancient (2003.2) doc links to 2005.2 doc links. | ||
#15 | 4646 | michael | Typo fix and review email test. | ||
#14 | 4317 | michael | Correct links. | ||
#13 | 4316 | michael | Remove artifact of 'p4 print'. | ||
#12 | 4315 | michael | Update ancient documentation links to 2003.2 doc. | ||
#11 | 968 | rmg |
Change mail addresses from "info@perforce.com" to "opensource@perforce.com" (now that the "opensource" address exists). |
||
#10 | 282 | james |
update public depot tutorial to remove reference to "locked" option being in beta test - it's been a supported feature since 99.1 ! |
||
#9 | 147 | Laura Wingerd | Fix missing HTML anchor. | ||
#8 | 126 | Laura Wingerd | Update doc links to point to current Perforce command reference pages. | ||
#7 | 53 | Laura Wingerd | Added user name and password setup instructions to tutorial. | ||
#6 | 52 | Laura Wingerd | Minor web page format changes. | ||
#5 | 51 | Laura Wingerd | Update copyright year. | ||
#4 | 50 | Laura Wingerd | Minor PD doc changes. | ||
#3 | 31 | Perforce maintenance | PD tutorial done. | ||
#2 | 30 | Perforce maintenance | PD tutorial, 90% done. | ||
#1 | 29 | Perforce maintenance | PD Tutorial, about half done. |