# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#33 | 14682 | Git Fusion |
Git Fusion branch management Imported from Git ghost-of-change-num: 960958 ghost-of-sha1: 005052ae424bd69f426f7209e741ca1c8c3253c7 ghost-precedes-sha1: ad052c71a568ef12165e143a6866ad9ceffbb4a1 parent-branch: None@960958 push-state: incomplete |
||
#32 | 14659 | tony |
Add ignore file support to P4Ruby. This change adds three new methods: P4#ignore_file - Return current ignore file P4#ignore_file= - Set ignore file name P4#ignored? - Test if a path is ignored It also removes the check which objected to the use of Ruby 2.0 since we now support it. Now we simply check that you're not using 2.1 (still a development release). |
||
#31 | 14650 | jmistry |
Progress indicator for P4Ruby. There is a new class P4::Progress that is set up to be subclassed by a user. It has the following interface and P4Ruby expects the following class methods to be defined by the user (even if it's an empty implementation): class Progress: def init(type) end def description(description, units ) end def total( total ) end def update( position ) end def done( fail ) end end Users need to create a subclass of P4::Progress and assign an instance to P4 to enable the progress indicator: class MyProgress < P4::Progress def update(pos): # do something with the value here # other methods p4 = P4.new p4.progress = MyProgress.new New feature to be documented in the release notes. |
||
#30 | 14611 | jmistry |
Support setting values in the registry through P4Ruby. The command P4.set_env( var, val ) will set a registry variably on platforms that support this action or through an exception on Unix. The command P4.set_env( var ) resets a registry variable. Updated unit test '02_environment.rb' to include registry set/check. User visible change to be documented in release notes. |
||
#29 | 14594 | jmistry |
[P4Ruby] enable streams by default Fixed S_STREAMS bit mask to 0x0040 and changed the initial state S_INITIAL_STATE bit 0x0041 to enable streams by default. Added logic to set streams for API levels greater than 69 Add streams test case - tests the output of 'P4::run_depots' for different settings of 'P4::streams' and 'P4::api_level' |
||
#28 | 14593 | Sven Erik Knop |
P4Ruby implementation of OutputHandler. Also, debug is now treated as a normal attribute and can be read. Test cases still missing. New functionality, to be documented in release notes. |
||
#27 | 14589 | Sven Erik Knop | Pulled P4Ruby p10.2 changes back to main. | ||
#26 | 14586 | tony |
Streams method tidying. Change P4#streams into P4#streams? as it returns a boolean, and change the implementation to use SetVar() instead of SetProtocol() now that Mark's made it work for us. Change to undocumented functionality |
||
#25 | 14584 | psoccard | Added method to enable streams | ||
#24 | 14583 | psoccard | Added support for -Ztrack | ||
#23 | 14572 | tony |
Fix incorrect initialization of bitmask, and the reset mask. A legacy of some refactoring prior to submitting the last change. Bug fix to unreleased infrastructure change |
||
#22 | 14571 | tony |
Tidy P4Ruby's connection state management. P4ClientApi was accumulating a lot of 'int' flags. This change combines them all into a bitmask with some methods to encapsulate the manipulation of the mask. I've also removed the code which worked around a very old and obscure protocol bug in 2000.1/2000.2 servers. Anyone using a server that old doesn't deserve the modern P4Ruby. To test P4#server_case_sensitive? I have adapted the test suite so that the server it runs uses the -C1 flag - so it's case-folding on all platforms. The reason for this is that it enables the tests to succeed on Windows and Mac OS where case-folding is the norm. Infrastructure change only. No functional change. |
||
#21 | 14570 | tony |
Add new P4#server_unicode? method to P4Ruby. This allows you to test for unicode mode servers once you've executed at least one Perforce command. That's because the server only sends the protocol block in response to the first command these days, and that's when we'll find out if unicode mode is enabled. |
||
#20 | 14560 | tony |
Add a P4#server_case_sensitive? method that returns true if the server is base sensitive, and false otherwise. Raises a P4Exception if it's used before a command has been executed. User-visible enhancement documented in p4rubynotes.txt |
||
#19 | 14558 | tony |
Add undoc'd P4#protocol( var, val) method for calling ClientApi::SetProtocol(). I would prefer to have named methods for the important protocol variables, or to wrap their use in other ways (see tag and specstring), but for tunables and other ad-hoc settings, sometimes direct access is required. User-visible change, not documented anywhere. |
||
#18 | 14541 | tony |
Copyright notice housekeeping: update all notices to 2008, and correct start date from 1997 to 2001 when P4Ruby was first released from the public depot. No functional change |
||
#17 | 14539 | tony |
Make sure P4Ruby picks up P4CHARSET from the environment. Previously, our cached copy of the charset was not being initialised, and that's why it wasn't being picked up. Rather than initialise it, I've chosen to simply eliminate the cached copy, and use ClientApi to store it. Simpler, and more reliable. User-visible bug fix documented in p4rubynotes.txt Note, as the job contains another request, it stays open for now. |
||
#16 | 14531 | tony |
Add P4#env() method to allow users to read the P4 object's environment using the same rules that P4 does. This allows values from P4CONFIG files to be picked up automatically. P4#cwd=() now calls Enviro::Config() to reload any config file when the user changes directory. User-visible enhancement documented in p4rubynotes.txt |
||
#15 | 14521 | tony | Update copyright notices in all applicable P4Ruby files. | ||
#14 | 14511 | tony |
Add P4#api_level method to get the current API level. User-visible new feature to be documented in Scripting Interfaces Guide. |
||
#13 | 14508 | tony |
Add 'getters': P4#maxresults, P4#maxscanrows and P4#maxlocktime to complement the equivalent setters. User-visible change to be documented in Scripting Interface Guide |
||
#12 | 14502 | tony |
Rework spec handling somewhat so that: (a) P4Ruby knows about the default spec types for 2007.2 so it doesn't have to connect to the server to parse and format specs, and nor does it have to do the ugly hack of running a 'p4 xxx -o' and discarding the result just to get the specDef. (b) If a user's got a custom spec then the spec cache will be updated if they fetch an object of that type. So basically, if the server's given us a specdef for a class of spec, we use it. Otherwise, we fall back on the builtin defaults This reworks SpecMgr quite a bit - renaming methods so it's clearer what they do, and making it own the spec cache. We also pass the SpecMgr object created by P4ClientApi down to ClientUserRuby now, so that whenever the server sends us a spec, we can update the cache. |
||
#11 | 14500 | tony |
Add P4#version= and P4#version methods to get/set the version of the program. User-visible change to be documented in Scripting Interface Guide |
||
#10 | 14498 | tony |
Add P4#ticket_file and P4#ticket_file= methods to get and set the ticket file. Note that P4#ticket_file will only return something if a value has been previously set using P4#ticket_file=(). There's no way, in the existing P4 API to get the current ticket file. User-visible change to be documented in Scripting Interfaces Guide |
||
#9 | 14495 | tony |
Remove P4#output() method used to refetch the output if you've somehow lost it. Really shouldn't be needed and we don't want to implement this in the other languages. So... User-visible change to be de-documented in the Scripting Interfaces Guide. |
||
#8 | 14494 | tony |
Add P4#maxlocktime=( int ) method to allow users to specify the maximum number of milliseconds for which locks may be held. |
||
#7 | 14493 | tony |
Turn on tagged mode by default, and make parse_forms mode always on (it only works when tagged mode is on too). Now users can turn tagged mode off if they want to by calling: p4.tagged = false and turn it back on by calling: p4.tagged = true You can test the current state of affairs using: p4.tagged? User-visible change to be documented in Scripting Interface Guide |
||
#6 | 14489 | tony |
Add P4#server_level method to return the protocol level of the server. Raises a P4Exception if you attempt to use it before running a command (since the server2 variable is only sent to the client after the client runs a command). New method to be documented in Scripting Interfaces Guide |
||
#5 | 14488 | tony |
Add P4#language and P4#language= methods to allow users to get/set their language (mostly applies to Japanese I guess) Change to unreleased functionality |
||
#4 | 14487 | tony |
Add P4#connected? to test whether or not the session (a) has been connected and (b) has not been dropped. Functional change to unreleased code. |
||
#3 | 14486 | tony |
Add P4#config_file method to return the path to the P4CONFIG file in use. |
||
#2 | 14483 | tony |
Method name rationalisation, part 1. All the methods with names ending with '?' that do not return booleans now have the '?' dropped. This will be used to ensure consistency across the scripting interfaces. Added P4#prog() -> <string> to partner P4#prog=( <string> ) Removed some redundant aliases that we're dropping support for in future versions |
||
#1 | 14480 | tony |
Add P4Ruby 1.5944 to main as start-point for the first productized release of P4Ruby |