📄 perforce.html.orig
字号:
<h3>Description:</h3><p>Submit a changelist, usually obtained from P4Change.</p><h3>Parameters</h3><table border="1" cellpadding="2" cellspacing="0"> <tr> <td valign="top"><b>Attribute</b></td> <td valign="top"><b>Description</b></td> <td align="center" valign="top"><b>Required</b></td> </tr> <tr> <td valign="top">change</td> <td valign="top">The changelist number to submit</td> <td valign="top" align="center">Yes</td> </tr></table><h3>Examples</h3><pre><p4submit change="${p4.change}"/></pre><hr><h2><a name="p4have">P4Have</a></h2><h3>Description:</h3><p>List handy file info reflecting the current client contents.</p><h3>Parameters</h3><table border="1" cellpadding="2" cellspacing="0"> <tr> <td valign="top"><b>Attribute</b></td> <td valign="top"><b>Description</b></td> <td align="center" valign="top"><b>Required</b></td> </tr> <tr> <td valign="top">None</td> <td valign="top" align="center">--</td> <td valign="top" align="center">--</td> </tr></table><h3>Examples</h3><pre><p4have/></pre><hr><h2><a name="p4label">P4Label</a></h2><h3>Description:</h3><p>Create a new label and set contents to reflect current client file revisions.</p><h3>Parameters</h3><table border="1" cellpadding="2" cellspacing="0"> <tr> <td valign="top"><b>Attribute</b></td> <td valign="top"><b>Description</b></td> <td align="center" valign="top"><b>Required</b></td> </tr> <tr> <td valign="top">name</td> <td valign="top">The name of the label</td> <td valign="top" align="center">Yes</td> </tr> <tr> <td valign="top">view</td> <td valign="top">client view to use for label</td> <td valign="top" align="center">No</td> </tr> <tr> <td valign="top">desc</td> <td valign="top">Label Description</td> <td valign="top" align="center">No</td> </tr> <tr> <td valign="top">lock</td> <td valign="top">Lock the label once created.</td> <td valign="top" align="center">No</td> </tr></table><h3>Examples</h3><pre><p4label name="NightlyBuild:${DSTAMP}:${TSTAMP}" desc="Auto Nightly Build" lock="locked"/></pre><hr><h2><a name="p4counter">P4Counter</a></h2><h3>Description:</h3><p>Obtain or set the value of a counter. When used in its base form(where only the counter name is provided), the counter value will beprinted to the output stream. When the value is provided, the counterwill be set to the value provided. When a property name is provided,the property will be filled with the value of the counter. You maynot specify to both get and set the value of the counter in the sameTask.</p><P>The user performing this task must have Perforce "review" permissionsas defined by Perforce protections in order for this task to succeed.</P><h3>Parameters</h3><table border="1" cellpadding="2" cellspacing="0"> <tr> <td valign="top"><b>Attribute</b></td> <td valign="top"><b>Description</b></td> <td align="center" valign="top"><b>Required</b></td> </tr> <tr> <td valign="top">name</td> <td valign="top">The name of the counter</td> <td valign="top" align="center">Yes</td> </tr> <tr> <td valign="top">value</td> <td valign="top">The new value for the counter</td> <td valign="top" align="center">No</td> </tr> <tr> <td valign="top">property</td> <td valign="top">The property to be set with the value of the counter</td> <td valign="top" align="center">No</td> </tr></table><h3>Examples</h3>Print the value of the counter named "last-clean-build" to the output stream:<pre><p4counter name="last-clean-build"/></PRE>Set the value of the counter based on the value of the "TSTAMP" property:<PRE><p4counter name="last-clean-build" value="${TSTAMP}"/></PRE>Set the value of the "p4.last.clean.build" property to the currentvalue of the "last-clean-build" counter:<PRE><p4counter name="last-clean-build" property="${p4.last.clean.build}"/></pre><hr><h2><a name="p4reopen">P4Reopen</a></h2><h3>Description:</h3><p>Move (or reopen in Perforce speak) checkout files between changelists.</p><h3>Parameters</h3><table border="1" cellpadding="2" cellspacing="0"> <tr> <td valign="top"><b>Attribute</b></td> <td valign="top"><b>Description</b></td> <td align="center" valign="top"><b>Required</b></td> </tr> <tr> <td valign="top">tochange</td> <td valign="top">The changelist to move files to.</td> <td valign="top" align="center">Yes</td> </tr></table><h3>Examples</h3>Move all open files to the default changelist<pre><p4reopen view="//..." tochange="default"/></PRE>Create a new changelist then reopen into it, any files from the view //projects/foo/main/...<PRE><p4change description="Move files out of the way"/><p4reopen view="//projects/foo/main/..." tochange="${p4.change}"/></pre><hr><h2><a name="p4revert">P4Revert</a></h2><h3>Description:</h3><p>Reverts files.</p><h3>Parameters</h3><table border="1" cellpadding="2" cellspacing="0"> <tr> <td valign="top"><b>Attribute</b></td> <td valign="top"><b>Description</b></td> <td align="center" valign="top"><b>Required</b></td> </tr> <tr> <td valign="top">change</td> <td valign="top">The changelist to revert.</td> <td valign="top" align="center">No</td> </tr> <tr> <td valign="top">revertOnlyUnchanged</td> <td valign="top">Revert only unchanged files (p4 revert -a)</td> <td valign="top" align="center">No</td> </tr> </table><h3>Examples</h3>Revert everything!<pre><p4revert view="//..."/></PRE>Revert any unchanged files in the default change<PRE><p4revert change="default" revertonlyunchanged="true"/></pre><hr><h2><a name="p4add">P4Add</a></h2><h3>Description:</h3><p>Adds files specified in nested fileset children.</p><h3>Parameters</h3><table border="1" cellpadding="2" cellspacing="0"> <tr> <td valign="top"><b>Attribute</b></td> <td valign="top"><b>Description</b></td> <td align="center" valign="top"><b>Required</b></td> </tr> <tr> <td valign="top">commandlength</td> <td valign="top">A positive integer specifying the maximum length of the commandline when calling Perforce to add the files. Defaults to 450, higher values mean faster execution, but also possible failures.</td> <td valign="top" align="center">No</td> </tr> <tr> <td valign="top">changelist</td> <td valign="top">If specified the open files are associated with thespecified pending changelist number; otherwise the open files areassociated with the default changelist.</td> <td valign="top" align="center">No</td> </tr> </table><h3>Examples</h3>Require a changelist, add all java files starting from a directory,and submit<pre><p4change/><p4add commandlength="20000" changelist="${p4.change}"> <fileset dir="../dir/src/" includes="**/*.java"/><p4add><p4submit change="${p4.change}"/></pre><h2><a name="changes">Change History</a></h2><table border="1" cellpadding="2" cellspacing="0"><tr> <td valign="top">Sept 2000</td> <td valign="top" align="center">--</td> <td valign="top">Internal Release within Rubus</td></tr><tr> <td valign="top">Nov 2000</td> <td valign="top">V1.0</td> <td valign="top">Initial Release donated to ASF :-)</td></tr><tr> <td valign="top">Jan 2001</td> <td valign="top">V1.1</td> <td valign="top">fixed cross platform (NT/Unix) bug<br>refactored p4 output handling code<br>refactored exec'ing code</td></tr></table><hr><p align="center">Copyright © 2001-2002 Apache Software Foundation. All rightsReserved.</p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -