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

Problem with SVN::Client perl module

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2003-12-17 01:58:03 CET

So I've been playing with the Perl bindings lately, and I've been
having some trouble with the SVN::Client module. When I import it I
get the following error:

$ cat foo.pl
use SVN::Core;
use SVN::Client;
$ perl foo.pl
Usage: svn_client_import(path,url,nonrecursive,ctx,pool); at foo.pl
line 2.
BEGIN failed--compilation aborted at foo.pl line 2.
$

The problem turns out to be in Base.pm. We redefine the 'import'
function so that we set up the perl version of svn_client_import, and
it blows up later on when we try to call the perl import subroutine.
I'm currently using the following hack to work around it, but I'm
pretty sure it's the wrong solution...

Index: Base.pm
===================================================================
--- Base.pm (revision 8017)
+++ Base.pm (working copy)
@@ -76,6 +76,7 @@
         elsif (m/(.*)_set$/) {
         }
         else {
+ if ($_ eq "import") { $_ = "do_import"; }
             *{"${caller}::$_"} = ${"SVN::_${pkg}::"}{$name};
         }
      }

Any thoughts from the Perl gurus out there?

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 17 01:59:23 2003

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.