Package: libsvn-perl
Version: 1.8.10-3
Severity: important
Tags: upstream

The attached script using get_dir fails with SVN 1.8.10-3 in unstable.
The SVN package in Debian stable (1.6.17dfsg-4+deb7u6) is fine.
I get the following failure:

    Incorrect parameters given: Could not convert '%ld' into a number at ...

I expect something like the following output (which 1.6.17 gives me):

$VAR1 = [
          'debian',
          '.scm-settings',
          'tools',
          'COPYING.CDDL',
          'src',
          'include',
          'COPYING',
          'Config.kmk',
          'Makefile.kmk',
          'configure.vbs',
          'configure',
          'doc',
          'Doxyfile.Core'
        ];
$VAR1 = {
          'svn:entry:committed-rev' => '28924',
          'svn:ignore' => 'out
AutoConfig.kmk
LocalConfig.kmk
configure.log
env.sh
env.bat
tinderclient.log
SlickEdit
',
          'svn:entry:last-author' => 'vboxsync',
          'svn:externals' => 'kBuild -r 2360 
http://www.virtualbox.org/svn/kbuild-mirror/trunk/kBuild',
          'svn:entry:uuid' => 'cfe28804-0f27-0410-a406-dd0f0b0b656f',
          'svn:mergeinfo' => '/branches/VBox-3.0:58652',
          'svn:wc:ra_dav:version-url' => '/svn/vbox/!svn/ver/28924/trunk',
          'svn:entry:committed-date' => '2010-04-30T09:08:17.252108Z'
        };
---
This causes problems with git-svn and necessitates a workaround:

http://mid.gmane.org/20141031103403.ga6...@dcvr.yhbt.net
http://mid.gmane.org/1414636504.45506.yahoomailba...@web172304.mail.ir2.yahoo.com
http://mid.gmane.org/1414722617.89476.yahoomailba...@web172305.mail.ir2.yahoo.com

Thanks for reading!
use SVN::Ra;
use Data::Dumper;
my $ra = SVN::Ra->new(url => 'http://www.virtualbox.org/svn/vbox/trunk');
my ($dirs, $rev, $props) = $ra->get_dir('', 28924); # failure
print Dumper([keys %$dirs]);
print Dumper($props);

Reply via email to