Code

svnimport: newer libsvn wants us to ask for the root with "", not "/"
authorP. Christeas <p_christ@hol.gr>
Wed, 23 Jul 2008 20:08:27 +0000 (23:08 +0300)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Jul 2008 23:58:09 +0000 (16:58 -0700)
In r27729, libsvn introduced an assert which explicitly
forbids searching the tree at "/". Luckily enough, it
still accepts an empty string "" as the starting point.

http://svn.collab.net/viewvc/svn/trunk/subversion/libsvn_ra/ra_loader.c?r1=27653&r2=27729

Tested against libsvn0-1.5.0-4mdv2009.0 (needs the fix),
libsvn0-1.4.6-5mdv2008.1 (works anyway)

Signed-off-by: P. Christeas <p_christ@hol.gr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/examples/git-svnimport.perl

index ea8c1b2f605c3d34f12357538f0f86848b15f078..a13bb6afec2fe5e0b5249523ec8c62d8e517de88 100755 (executable)
@@ -933,7 +933,7 @@ while ($to_rev < $opt_l) {
        $to_rev = $from_rev + $repack_after;
        $to_rev = $opt_l if $opt_l < $to_rev;
        print "Fetching from $from_rev to $to_rev ...\n" if $opt_v;
-       $svn->{'svn'}->get_log("/",$from_rev,$to_rev,0,1,1,\&commit_all);
+       $svn->{'svn'}->get_log("",$from_rev,$to_rev,0,1,1,\&commit_all);
        my $pid = fork();
        die "Fork: $!\n" unless defined $pid;
        unless($pid) {