Re: Perl API SVN::Ra::get_commit_editor2 causes TypeError
From: Markus Kuhn <Markus.Kuhn_at_cl.cam.ac.uk>
Date: Sun, 11 Jul 2010 15:14:11 +0100
yary wrote on 2010-07-11 00:03 UTC:
I was initially using SVN::Ra from Subversion 1.5.7, as shipping with
I've since also tried to use the come shipping with openSUSE 11.2,
Note that other parts of SVN:Ra do work fine for me, e.g. I can use
#!/usr/bin/perl
my $ra = SVN::Ra->new('http://svn.apache.org/repos/asf/subversion/');
without any problem to load the content of a file from a repository into
The only (but crucial) thing that I couldn't get to work so far is
my $logmsg = "test commit via the SVN:Ra Perl API";
which results in
TypeError in method 'svn_ra_get_commit_editor2', argument 5 of type 'svn_commit_callback2_t'
I also get a similar TypeError message when I try get_commit_editor
> It looks like this perl module comes bundles with Subversion
The openSUSE RPM package management takes care that this can't happen:
> It also looks like that module was last updated in 2007.
In case
svn cat http://svn.apache.org/repos/asf/subversion/trunk/subversion/bindings/swig/perl/native/t/6ra.t
shows the official test suite for the Perl SVN::Ra binding, then it is
> Depending on your needs, this may work-
Thanks for the pointer, but I doubt that is what I am looking for.
My application: I would like to write a CGI script that offers a
Problem: In CGI scripts, having to check out a working copy is extremely
That is why I would like to use the remote-access layer API from Perl
May be, I should try the equivalent Python binding (svn.ra) instead,
Markus
-- Markus Kuhn, Computer Laboratory, University of Cambridge http://www.cl.cam.ac.uk/~mgk25/ || CB3 0FD, Great BritainReceived on 2010-07-11 16:18:00 CEST |
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.