Perl API SVN::Ra::get_commit_editor2 causes TypeError
From: Markus Kuhn <Markus.Kuhn_at_cl.cam.ac.uk>
Date: Fri, 09 Jul 2010 23:24:38 +0100
I'm trying to commit a file modification in a Subversion repository from
Using subversion-perl-1.5.7 (from openSUSE Linux 11.1), the test program
#!/usr/bin/perl
results in the error message
TypeError in method 'svn_ra_get_commit_editor2', argument 5 of type 'svn_commit_callback2_t'
being printed.
Any idea what I am doing wrong?
I had thought, the last lines follow closely the example given in "man SVN::Ra":
$ra->get_commit_editor($logmsg, $callback, $callback_baton, $lock_tokens, $keep_locks)
my $editor = SVN::Delta::Editor->new(
Now that you've got your editor you can call methods on it to describe changes in the
The $callback function will be called during your call to the "$ed->close_edit()"
"get_commit_editor2" is identical to "get_commit_editor" except for the information
(The last TODO sentences above worry me somewhat: is this API actually ready for production use?)
Markus
-- Markus Kuhn, Computer Laboratory, University of Cambridge http://www.cl.cam.ac.uk/~mgk25/ || CB3 0FD, Great BritainReceived on 2010-07-10 06:53:33 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.