<html> <head> <title>P4/Ruby - P4Integration</title> <style type="text/css"> H4 { color: grey } #classhdr { font-weight: bold; background-color: black; color: white } #classtag { font-size: 10; } #classname { font-size: 16; } #classparent{ font-size: 14; } </style> </head> <body> <p align="right"> <a href="index.html">Contents</a> </p> <table border="0" width="100%" id="classhdr"> <tr> <td id="classtag">Class</td> <td> </td> <td> </td> <td id="classname">P4Integration</td> <td id="classparent" width="100%">< Object</td> </tr> </table> <h4>Description</h4> Utility class providing easy access to the details of an integration record. <h4>See Also</h4> <a href="P4.html">P4</a> <a href="P4Exception.html">P4Exception</a> <a href="P4DepotFile.html">P4DepotFile</a> <a href="P4Revision.html">P4Revision</a> <h4>Class Methods</h4> <p> <img src="dot.gif" width="100%" height="3"> <table border="0" width="100%"> <tr> <td rowspan="2" width="150"> <h5>new</h5> </td> <td align="right"> P4Integration.new( <i>how, file, srev, erev</i> ) -> <i>aP4Integration</i> </td> </tr> <tr> <td><img src="dot.gif" height="1" width="100%"></td> </tr> </table> <br> Constructs a new P4Integration object. "how" represents the type of operation e.g. "copy from", "merge into" etc. whilst, "file" is the name of the integrated file and "srev" and "erev" the start and end revision numbers for this integration. <pre> integ = P4Integration.new( "copy from", "//depot/main/main.c", 1, 3 ) </pre> <br> <h4>Instance Methods</h4> <p> <img src="dot.gif" width="100%" height="3"> <table border="0" width="100%"> <tr> <td rowspan="2" width="150"> <h5>how</h5> </td> <td align="right"> <i>integ</i>.how -> <i>aString</i> </td> </tr> <tr> <td><img src="dot.gif" height="1" width="100%"></td> </tr> </table> <br> Returns the type of the integration record - how the record was created. <p> <img src="dot.gif" width="100%" height="3"> <table border="0" width="100%"> <tr> <td rowspan="2" width="150"> <h5>file</h5> </td> <td align="right"> <i>integ</i>.file -> <i>aPath</i> </td> </tr> <tr> <td><img src="dot.gif" height="1" width="100%"></td> </tr> </table> <br> Returns the path to the file being integrated to/from. <p> <img src="dot.gif" width="100%" height="3"> <table border="0" width="100%"> <tr> <td rowspan="2" width="150"> <h5>srev</h5> </td> <td align="right"> <i>integ</i>.srev -> <i>aNumber</i> </td> </tr> <tr> <td><img src="dot.gif" height="1" width="100%"></td> </tr> </table> <br> Returns the start revision number used for this integration. <p> <img src="dot.gif" width="100%" height="3"> <table border="0" width="100%"> <tr> <td rowspan="2" width="150"> <h5>erev</h5> </td> <td align="right"> <i>integ</i>.erev -> <i>aNumber</i> </td> </tr> <tr> <td><img src="dot.gif" height="1" width="100%"></td> </tr> </table> <br> Returns the end revision number used for this integration. <p> <hr> </body> </html>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 4680 | Tony Smith |
Make P4Ruby return new P4::Spec objects instead of plain old hashes when parse_forms mode is in use. A P4::Spec object is derived from Hash so should be backwards compatible with previous code. P4::Spec provides limited fieldname validation on forms and accessor methods for quick and easy access to the fields in the form. The accessor methods are all prefixed with '_' to avoid colliding with methods from the Hash parent class. This is a little ugly, but deriving from hash is a big win, so it's worth it. This change also fixes a minor bug found along the way. Spec parsing and formatting wouldn't work with labels, branches, depots and groups unless you'd previously run a P4::fetch_label( <label> ), P4::fetch_branch( <branch> ) etc. etc. This is because the spec parsing code internally runs one of these commands in order to grab the specdef from the server but it wasn't providing a spec name. i.e. it was using 'p4 client -o' and assuming that this would work for other types of spec too. It does, but not for all spec types. So, now the spec parsing code will use a bogus name for the spec types that require it. |
||
#5 | 4653 | Tony Smith |
More documentation tweaks. Just makes the pages look more like the reference pages in the 'Pickaxe book' |
||
#4 | 4652 | Tony Smith |
Doc update for P4Ruby. Rework the html and the CSS to make the docs a little easier on the eye and easier to use too. |
||
#3 | 4255 | Tony Smith |
P4Ruby doc reformatting. Now uses CSS instead of 1x1 image and too many tables. Could no doubt be improved upon, but it's a start. |
||
#2 | 2426 | Tony Smith | Doc beautifying for P4Ruby. | ||
#1 | 1324 | Tony Smith |
P4/Ruby documentation update. Changed doc layout and added in docs for newly added methods and classes. |