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

Re: subversion/libsvn_ra/ra_loader.c:934: svn_ra_get_log: Assertion `*path != '/'' failed.

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Wed, 23 Jan 2008 09:30:26 -0500

Olaf Hering wrote:
> Maybe its already a known issue.
> A perl script, which works with 1.4, fails with trunk:
>
> subversion/libsvn_ra/ra_loader.c:934: svn_ra_get_log: Assertion `*path != '/'' failed.
>
> Does the script need an update for some 1.5 API changes?
> Details:
> https://bugzilla.novell.com/show_bug.cgi?id=355266
>
> ...
> use SVN::Ra;
>
> my $ra = SVN::Ra->new(url => 'http://svn.collab.net/repos/svn/trunk');
> $ra->get_log('/', 1, $ra->get_latest_revnum, 0, 1, 0, \&log_callback);

This should be:

    $ra->get_log('', 1, $ra->get_latest_revnum, 0, 1, 0, \&log_callback);
                 ^^
The script today is in violation of the RA API. Trunk code has been added
to catch such violations before they cause problems elsewhere.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2008-01-23 17:01:46 CET

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.