perl SVN::Client bug
From: Thompson, Thomas J <thomas.j.thompson_at_intel.com>
Date: Tue, 27 Sep 2011 13:25:04 -0700
Hi,
I'm an intermediate perl developer with lots to learn, but I think I've found an issue with the perl subversion bindings that I'd like to pass by you folks to ensure it's not just operator error. I would give you the version I'm working with, but I see no VERSION variable in the SVN::Client module. What version information would be useful?
I tried to subclass SVN::Client, but I found that function calls were failing with type errors. I brought this up in this thread on perlmonks:
I was seeing errors that look like this:
I found out this section of code handles arguments for calls to the svn functions:
# Don't shift the first param if it isn't a SVN::Client
The problem here is this line:
This breaks if you attempt to subclass SVN::Client to add functionality. The result is type errors because the invocant is not removed from the function arguments before being passed through to the svn api. This should instead be:
if (UNIVERSAL::isa($_[$index], 'SVN::Client')
What should I do from here to ensure it is addressed? I'd like to help out the perl/svn community.
Thomas
|
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.