Subject: | svn_wc_status_func2_t aren't supported by the Perl bindings |
Show quoted text
---------- Forwarded message ----------
From: Daniel Shahaf <danielsh@elego.de>
Date: Fri, Apr 20, 2012 at 2:39 PM
Subject: Re: Using info2 in perl
To: Jim Searle <jimsearle@gmail.com>
Cc: users@subversion.apache.org
Hmm. A quick glance at subversion/bindings/swig/svn_wc.i tells me that
perhaps svn_wc_status_func2_t aren't supported by the Perl bindings?
(notice the pattern of #ifndef's around svn_wc_status_func_t and
svn_wc_status_func2_t)
Jim Searle wrote on Fri, Apr 20, 2012 at 14:21:52 -0700:
> I was able to get info2 working with Daniel's suggestion, but now I
> can not get status3 to work.
>
> For the code below I get this error when it tries to run status3:
> TypeError in method 'svn_client_status3', argument 4 of type
> 'svn_wc_status_func2_t'
>
> Seems like it wants me to typecast the subroutine, but not sure how to
do that?
>
> $s = SVN::Client->new();
> # Standard status
> print "Using status:\n";
> $s->status("", undef,
> sub{($path, $status) = @_;
> print "$path,$status\n" },
> 1, 1, 1, 0);
>
> print "\n\nUsing status3:\n";
> $s->status3( "", undef,
> sub{($path, $status) = @_;
> print "$path,$status\n" },
> $SVN::Core::depth_immediates, 1, 1, 0, 1, undef );
>
> Thanks,
> Jim