Re: svn commit: r24322 - trunk/subversion/bindings/swig/ruby/svn
From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: 2007-04-11 08:42:26 CEST
Hi kou,
It took me a while to track this one down. Without this patch I'm
I just put this typemap in with the others I found. Is it the best
-- Joe [[[ * subversion/bindings/swig/svn_client.i Allow nil to be passed as changelist_name argument ]]] Index: subversion/bindings/swig/svn_client.i =================================================================== --- subversion/bindings/swig/svn_client.i (revision 24525) +++ subversion/bindings/swig/svn_client.i (working copy) @@ -116,6 +116,16 @@ #endif #ifdef SWIGRUBY + +/* Allow nil to be passed as changelist_name argument */ +%typemap(in) const char *changelist_name { + if (NIL_P($input)) { + $1 = NULL; + } else { + $1 = StringValuePtr($input); + } +} + %typemap(argout) apr_array_header_t **props { %append_output(svn_swig_rb_apr_array_to_array_proplist_item(*$1)); } On 4/1/07, kou@tigris.org <kou@tigris.org> wrote: > Author: kou > Date: Sun Apr 1 21:56:04 2007 > New Revision: 24322 > > Log: > Support svn_client_commit4(). > > * subversion/bindings/swig/ruby/svn/client.rb > (Svn::Client::Context#commit): Use Svn::Client.commit4 instead > of Svn::Client.commit3. > > > Modified: > trunk/subversion/bindings/swig/ruby/svn/client.rb > > Modified: trunk/subversion/bindings/swig/ruby/svn/client.rb > URL: http://svn.collab.net/viewvc/svn/trunk/subversion/bindings/swig/ruby/svn/client.rb?pathrev=24322&r1=24321&r2=24322 > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Wed Apr 11 08:42:50 2007 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.