@matheusbsbs / matheus-bagliano / commits / e8a43a132d
Fork 0

svnimport: newer libsvn wants us to ask for the root with "", not "/"

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>

P. Christeas committed Jul 23, 2008 at 23:08 UTC e8a43a132d97165f6e56fa03923a3933cfedde81
1 file changed +1 -1
contrib/examples/git-svnimport.perl
+1 -1
@@ -933,7 +933,7 @@ while ($to_rev < $opt_l) {
933 $to_rev = $from_rev + $repack_after;
934 $to_rev = $opt_l if $opt_l < $to_rev;
935 print "Fetching from $from_rev to $to_rev ...\n" if $opt_v;
936 - $svn->{'svn'}->get_log("/",$from_rev,$to_rev,0,1,1,\&commit_all);
936 + $svn->{'svn'}->get_log("",$from_rev,$to_rev,0,1,1,\&commit_all);
937 my $pid = fork();
938 die "Fork: $!\n" unless defined $pid;
939 unless($pid) {