Name | Modified | Size |
---|---|---|
.. | ||
docstyle.css | 20 years ago | 2 KB |
index.html | 18 years ago | 6 KB |
P4.html | 18 years ago | 36 KB |
P4DepotFile.html | 20 years ago | 7 KB |
P4Exception.html | 20 years ago | 1 KB |
P4Integration.html | 20 years ago | 4 KB |
P4MergeData.html | 18 years ago | 6 KB |
P4Revision.html | 20 years ago | 7 KB |
P4Spec.html | 20 years ago | 4 KB |
Change | User | Description | Committed |
---|---|---|---|
5791 | Tony Smith | Add experimental support for passing a block to P4#run_resolve. The block is passed a P...4::MergeData object encapsulating the context of each merge performed. The block should evaluate to a string indicating the desired result of the merge: 'ay', 'at', 'am', 's', etc. The P4::MergeData object contains information about the files involved in the merge and can invoke an external merge tool. This is still experimental at this stage so the interface may change as it evolves. « |
18 years ago |
5311 | Tony Smith | Add new P4#api= method to allow users to lock scripts to a particular API level. This hel...ps when upgrading to new servers that extend support for tagged output to hitherto unsupported commands (2005.2 did a lot of that). See the C/C++ API Release Notes for the full details, but by way of example, to lock scripts to the 2005.1 interface use: p4.api = 57 « |
19 years ago |
5222 | Tony Smith | Improve debug output in P4Ruby: p4.debug = 1 * Show commands... being executed p4.debug = 2 * Show function calls p4.debug = 3 * Show data p4.debug = 4 * Show ruby garbage collection calls. Debug levels are cumulative as you'd expect. « |
19 years ago |
5169 | Tony Smith | Add missing parse_forms() call to example | 19 years ago |
4942 | Tony Smith | Add support for Unicode servers to P4Ruby. This change adds two new interfaces, P4#chars...et= and P4#charset? to set and get the charset respectively. « |
20 years ago |
4830 | Tony Smith | Add named constants for P4Ruby's exception levels. The valid levels are: ... P4::RAISE_NONE -- No exceptions P4::RAISE_ERRORS -- Exceptions on errors only P4::RAISE_ALL -- Exceptions on errors and warnings Also added P4#at_exception_level( level ) { ... } method to allow you to run a block of code at a different exception level and revert to the previous level when the block completes. Thanks to Johan Nilsson. Some doc tidying along with the docs for the features above. « |
20 years ago |
4810 | Tony Smith |
Fix the anchor names in the docs. Correction to previous change. |
20 years ago |
4809 | Tony Smith | Add P4#maxresults= and P4#maxscanrows= methods to allow you to place explicit limits on t...he execution of individual commands. These limits remain in force for all subsequent commands until they are removed by setting them to zero. Port of new functionality from P4Perl. « |
20 years ago |
4808 | Tony Smith | Make inline code stand out a little more in the docs | 20 years ago |
4753 | Tony Smith | Add support for executing commands which prompt the user for input more than once during... their execution. A perfect example is 'p4 password' which prompts the user three times. This works by allowing P4#input() to take an array argument. Each time Perforce prompts the user (by calling ClientUserRuby::Prompt()), the array is shifted by one and the first value in the array is passed to Perforce. Thus, to change your password a three-element array is needed comprising of your old password, and the new password twice. To make this a little easier on the eye, this change also includes a thin wrapper called P4#run_password() which takes simply the old password and the new password and constructs a suitable input array. This change also includes docs for the above, and docs for P4#run_filelog() which were found to be missing. « |
20 years ago |
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. « |
20 years ago |
4675 | Tony Smith | A little doc tweaking. The docs frontpage for P4Ruby now looks a little more appealing an...d has an improved structure. « |
20 years ago |
4660 | Tony Smith | Some doc tidying. | 20 years ago |
4657 | Tony Smith | Style tweak. | 20 years ago |
4653 | Tony Smith | More documentation tweaks. Just makes the pages look more like the reference pages in the... 'Pickaxe book' « |
20 years ago |
4652 | Tony Smith | Doc update for P4Ruby. Rework the html and the CSS to make the docs a little easier on t...he eye and easier to use too. « |
20 years ago |
4651 | Tony Smith | Add format_spec() method and format_* shortcuts to make it easy to convert a spec in a ha...sh back to its string form without sending it to the server. « |
20 years ago |
4593 | Tony Smith | Add support for 'p4 login' to P4Ruby per request from Robert Cowham. New installer to fol...low. « |
20 years ago |
4589 | Tony Smith | Update P4Ruby to support the new SetProg() method in the 2004.2 API. Whilst the new 'P4#p...rog=' method is always available, it's only functional if P4Ruby is built with a 2004.2 or later API. The build system got a bit of tidying up to support this change and the API version is now detected automatically if possible. I've also removed the --apilibdir and --apiincludedir flags as they complicate matters and I never use them and I don't believe anyone else does either. There are also some minor doc formatting tweaks to go along with the added documentation for prog=. « |
20 years ago |
4261 | Tony Smith | Add support for parsing arbitrary specs from strings in Ruby space. Useful with spec depo...ts. You might obtain the spec by running a "p4 print -q" against a file in a spec depot, but want to parse it into a Ruby hash. i.e. p4 = P4.new p4.parse_forms # Required! p4.connect buf = p4.run_print( "-q", "//specs/client/myclient" ) spec = p4.parse_client( buf ) # Or equivalently spec = p4.parse_spec( "client", buf ) « |
21 years ago |
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. « |
21 years ago |
2426 | Tony Smith | Doc beautifying for P4Ruby. | 22 years ago |
2392 | Tony Smith | Add missing documentation file | 22 years ago |
2085 | Tony Smith | Get rid of specdef hack in the Ruby API. No need to store it in the hash, just grab it... from the RPC buffer when needed. « |
23 years ago |
1426 | Tony Smith | Cleaned up the debug output a little. Introduced some debug levels so you can decide (ro...ughly) what output you want to see. Level 1 shows command execution, connect and disconnect. Level 2 includes Level 1 and also shows the RPC callbacks as they happen. Level 3 includes 1 and 2 and also shows when Ruby garbage collection takes place. Converted all the simple methods of the form P4#meth( arg ) to aliases for P4#meth=. Added P4#debug= to complete the scheme. The P4#meth( arg ) forms are now deprecated. i.e. you should use: p4.user = "tony" and not: p4.user( "tony" ) It's just more Ruby-like. « |
23 years ago |
1411 | Tony Smith | Document API version requirements for P4/Ruby | 23 years ago |
1324 | Tony Smith | P4/Ruby documentation update. Changed doc layout and added in docs for newly added method...s and classes. « |
23 years ago |