Name | Modified | Size |
---|---|---|
.. | ||
Makefile.PL | 20 years ago | 2 KB |
p4perldebug.h | 20 years ago | 2 KB |
p4result.cc | 18 years ago | 3 KB |
p4result.h | 18 years ago | 2 KB |
perlclientapi.cc | 18 years ago | 12 KB |
perlclientapi.h | 18 years ago | 4 KB |
perlclientuser.cc | 18 years ago | 18 KB |
perlclientuser.h | 18 years ago | 3 KB |
perlheaders.h | 18 years ago | 3 KB |
Change | User | Description | Committed |
---|---|---|---|
5869 | Tony Smith | Fix memory leaks. Thanks to John LoVerso and Sandy Currier for tracking these down and se...nding me the patch. « |
18 years ago |
5868 | Tony Smith | Port P4Perl to Perl 5.8.8. This change is spectacularly ugly, but then so are the innards... of Perl. See the long thread at: http://www.nntp.perl.org/group/perl.perl5.porters/2006/06/msg114383.html for details of the problem, and some discussion of solutions. I've had to come up with a solution that doesn't involve patching people's Perl installations, so my fix is even less easy on the eye but it appears to work, and hopefully hasn't broken things for older Perl versions. « |
18 years ago |
5787 | Tony Smith | Update P4Perl to build against the 2006.2 API, and detect (and reject) the passing of tai...nted data to P4::Run() as a security measure. « |
18 years ago |
5708 | Tony Smith | Add static P4::Identify() method to report the version of P4Perl, and the API used to bui...ld it. « |
18 years ago |
5692 | Tony Smith | Add support for $p4->ServerLevel() which returns the server's 'server2' protocol level.... This is not the same as, but is closely aligned to, the server version and can be used to test for feature availability. If you need explicit Perforce version strings, run 'p4 info' in tagged mode and parse the 'serverVersion' string. New feature requested by Robert Cowham. « |
18 years ago |
5592 | Tony Smith | Bug fix: We were erroneously making a Perl scalar mortal (which causes its reference coun...t to be decremented when it goes out of scope) when receiving binary data from the server. Decrementing the reference count to early meant the scalar was being cleaned up when it was in fact still in use. This change simply removes the sv_2mortal() call. Thanks to Mike Hall at National Instruments for finding this one. « |
19 years ago |
5564 | Tony Smith | Fix memory leaks when dealing with tagged output with array members. One of these days I'...ll get the hang of Perl's pesky reference counting mechanism... These leaks would have been most noticable with 'p4 filelog' (and that's where they were reported), but in fact any command that returned tagged output with array members would have leaked. « |
19 years ago |
5313 | Tony Smith | Add new SetApiLevel() method to allow users to lock scripts to a particular API level. Th...is helps 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->SetApiLevel( 57 ); « |
19 years ago |
5259 | Tony Smith | Update P4Perl for 2005.2 API changes. The 2005.2 API supplies forms ready-parsed to the... client when used in tagged mode. This is fine for P4Perl, except that we were not caching the specdef if no parsing was required and that meant that although forms could be converted to hashes, the reverse direction was broken. This change makes sure that we cache the specdef whenever it's available. « |
19 years ago |
5038 | Tony Smith | Bug fix: Fix memory leaks in P4Perl reported by Craig Galley. Perl's reference count gar...bage collection is not much fun to work with, but hopefully this change plugs P4Perl's leaks. There's still a leak that remains, but whether it's in P4Perl's code or just in Perl I don't know. A loop like this: while( 1 ) { my $p4 = new P4; } will leak like a sieve but I'm pretty sure P4Perl is cleaning up as it should. While it's very difficult to be certain with Perl's memory mode, creating one P4 object and using it multiple times now appears to be pretty steady. Also fixed use of uninitialized debug variable which could produce debug output you hadn't asked for. « |
20 years ago |
5035 | Tony Smith | Bug fix: call ClientApi::SetProg() before every command instead of just once as this valu...e is not retained by the Perforce API. « |
20 years ago |
4987 | Tony Smith | Bug fix for tagged mode output from 'p4 diff2'. Diff2 is one of the few (only?) commands... to use variables of the form 'var' and 'var2' rather than 'var1' and 'var2'. Normally, if there's no numeric suffix to a variable, P4Perl can assume it's looking at the only instance of that variable in the output. In the case of 'p4 diff2', that's not true. This change enables P4Perl to adapt to this change of circumstances and convert a previously scalar member of the hash result into an array member. « |
20 years ago |
4864 | Tony Smith | Bug fix: Introduce workaround for obscure 2000.1/2000.2 protocol bug that I really though...t we'd seen the last of. Along the way, a total revamp of the debugging output - required to diagnose the problem. « |
20 years ago |
4804 | Tony Smith | Add support for P4::SetMaxResults() and P4::SetMaxScanRows() which specify the desired li...mits for an instance of the P4 class. Note that the limits remain in force until disabled by setting them to zero. « |
20 years ago |
4754 | Tony Smith | Add support for passing multiple items of input to Perforce commands that need them. The... prime example is 'p4 password' which prompts the user three times for password input (old password, new password and new password again). Also add a P4::Password( $old, $new ) method to make it nice and easy to use. « |
20 years ago |
4698 | Tony Smith | Bug fix. Correct client initialization so that it no longer causes problems if the connec...tion to the server fails for some reason. Also corrected the number of tests in the test harness. « |
20 years ago |
4676 | Tony Smith | Enable P4Perl to work against a server in unicode mode. This change adds two new methods... to the P4 class: SetCharset() and GetCharset() which have the expected behaviour. Thanks to Raymond Danks <raymond.danks@amd.com>. Also cleaned up the test harness a little. « |
20 years ago |
4666 | Tony Smith | New ParseSpec() and FormatSpec() methods allow you to convert specs between hash and stri...ng representations easily. Shortcut methods Parse* and Format* are also defined. (i.e. FormatClient() and ParseLabel() etc.) New methods IsTagged() and IsParseForms() tell you if your client is in tagged/form parsing mode respectively. If you care. P4::Tag() is deprecated in favour of P4::Tagged(). P4::Tag() exists for backwards compatibility « |
20 years ago |
4608 | Tony Smith | Bug fix: The SetInput() method was omitted in the big rewrite so quite a lot was broken i...n builds 3.4579 and later. This change fixes that omission, and adds support for 'p4 login' too (that was how I discovered that SetInput() was missing). « |
20 years ago |
4585 | Tony Smith | Make the new P4Perl work with older versions of the Perforce API (i.e those without Clien...tApi::SetProg() defined ). This also introduces automatic determination of the API version being used so we can selectively exclude functionality that isn't available. No functional change. « |
20 years ago |
4582 | Tony Smith | Port new P4Perl architecture to Windows. Fixes a few porting issues and a couple of min...or errors in the previous change. « |
20 years ago |
4579 | Tony Smith | Rewrite P4Perl to be more like P4Ruby. This change does away with the old P4/P4::Client... split and pulls all the functionality of P4::Client into P4. Hence P4::Client is now deprecated. There are a few gotcha's - see the Changes file, and documentation for the details, but in general it's backwards compatible. As part of this change, I'm also releasing the previous current versions of P4 and P4::Client as released versions - for posterity. P4 now gets a v3.x version number so the old versions will stand out clearly. Hopefully it's all working - works fine for me - but people should consider this a beta build, for now at least. « |
20 years ago |