[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: svn_client_list, Perl, swig bindings

From: Miller, Eric <Eric.Miller_at_amd.com>
Date: 2007-02-26 22:24:27 CET

Nik-

My swig isn't that great either, but maybe you are missing the baton?
I know the ctx and pool are derived from the object data members if not
specified, but I don't know anything about the baton.

Personally I have been using ls instead of list, so I haven't run into
this.

Eric

> -----Original Message-----
> From: Nik Clayton [mailto:nik@ngo.org.uk]
> Sent: Monday, February 26, 2007 2:10 PM
> To: Subversion Developers
> Subject: svn_client_list, Perl, swig bindings
>
> All,
>
> I'm trying to wrap svn_client_list() using the SWIG bindings, to make
it
> accessible to Perl.
>
> Attached is a diff that's my first cut at doing that. Since
> svn_client_list() takes a parameter that (in Perl) is a subroutine
> reference, I've modeled the approach on the svn_client_list()
> implementation, which does the same thing.
>
> But it doesn't work. My tests have involved:
>
> a. Checking out the perl-bindings-improvements branch (with the
patch)
>
> b. Building the code
>
> c. Trying to run the attached list.t in
> subversion/bindings/swig/perl/native as
>
> % perl -Iblib/lib list.t
> ok 1 - use Test::SVN;
> ok 2 - use SVN::Client;
> ok 3 - The object isa SVN::Client
> Usage:
> svn_client_list(path_or_url,peg_revision,revision,recurse,
> dirent_fields,fetch_locks,list_func,baton,ctx,pool);1..3
> # Looks like your test died just after 3.
>
> (lines wrapped). I've about hit the extent of my swig-fu at this
point.
>
> Anyone spot my glaringly obvious mistake?
>
> N

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 26 22:24:57 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.