# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#9 | 1011 | Tony Smith |
Moved Perl API stuff one level down to make way for upcoming Ruby interface. |
||
#8 | 977 | Tony Smith |
Fix broken form parsing. Two problems: first off, the specdef was not being saved in the hash for later use so forms could not be reconstructed from the hash data structure. Secondly, multi-line elements parsed into array members of the hash were not being flattened prior to reconstructing the form so they would be empty. |
||
#7 | 976 | Tony Smith |
Fix for multi-line field handling bug. The array handling code was dependent on all results for a given tag being supplied before moving on to the next tag, but this is not true for all Perforce commands. i.e. p4 client -o -> tags not fragmented p4 describe -s -> oops. Now the implementation is not fussy about the order in which elements arrive other than that tagN comes before tagN+1. Any number of other elements may come in between them. |
||
#6 | 962 | Tony Smith |
Added support for presenting multi-line elements of a form as a single array member of the hashref in tagged/specstring output. |
||
#5 | 930 | Tony Smith | Back port previous changes to Perl 5.005_03 | ||
#4 | 929 | Tony Smith |
Add support for form parsing to Perl API. Allows Perforce specs (change, client, user etc.) to be parsed by the API and returned as Perl hashes rather than strings which must be parsed by the user. P4 module also has some new methods which make it easy to use this feature. Sample code: ------------------- use P4; my $p4 = new P4; $p4->ParseForms(); $p4->Init() or die( "Can't connect to Perforce" ); $p4->Edit( "filename" ); my $change = p4->GetChange(); $change->{ 'Description' } = "Some text"; $p4->SubmitSpec( $change ); print( $p4->ErrorCount() ? "Submit failed\n" : "Submit OK\n" ); ------------------- |
||
#3 | 798 | Tony Smith |
Removed extra inclusion of stdhdrs.h which is included by clientapi.h anyway. |
||
#2 | 582 | Tony Smith |
Improved docs in UI.pm and fixed minor bug which caused problems when calling scripts attempt to save the hashref passed to UI::OutputInfo() for later use. It was casued by the members of the hash being mortal variables. They will now persist if referred to. A couple of other minor bug fixes to UI.pm. Changes file has the details. |
||
#1 | 549 | Tony Smith |
Renamed the working directory to P4-Client as I've discovered that MakeMaker is quite happy with that and doesn't require a version number in the directory name. |
||
//guest/tony_smith/perforce/API/P4-Client-0.51/lib/clientuserperl.cc | |||||
#2 | 529 | Tony Smith |
Threaded Perl fix. Mustn't use dTHX on old perls, it doesn't exist. Also updated the Changes file with a comment I missed earlier. |
||
#1 | 527 | Tony Smith | Release P4::Client version 0.51 with Win32 support | ||
//guest/tony_smith/perforce/API/P4-Client-0.50/lib/clientuserperl.cc | |||||
#2 | 526 | Tony Smith | Initial port of P4::Client interface to Win32. | ||
#1 | 509 | Tony Smith |
Renamed P4::ClientApi to P4::Client as it's more friendly and that's what it's called on CPAN. Subsequent changes include the actual renaming inside the code, this just creates the branch |
||
//guest/tony_smith/perforce/API/P4-ClientApi-0.05/lib/clientuserperl.cc | |||||
#1 | 501 | Tony Smith |
First publicly released version of the Perl interface to the Perforce API. |