{"thread":{"id":"14639","subject":"[PATCH] svnimport: newer libsvn wants us to ask for the root with \"\", not \"/\"","startedAt":"2008-07-23T20:08:27Z","lastAt":"2008-07-23T20:08:27Z","messageCount":1,"participants":["P. Christeas"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"84601","messageId":"200807232308.30151.p_christ@hol.gr","threadId":"14639","inReplyTo":null,"subject":"[PATCH] svnimport: newer libsvn wants us to ask for the root with \"\", not \"/\"","fromName":"P. Christeas","fromEmail":"p_christ@hol.gr","sentAt":"2008-07-23T20:08:27Z","receivedAt":"2008-07-23T20:08:27Z","isPatch":true,"sender":{"key":"p_christ@hol.gr","avatar":null},"body":"In r27729, libsvn introduced an assert which explicitly\nforbids searching the tree at \"/\". Luckily enough, it\nstill accepts an empty string \"\" as the starting point.\n\nhttp://svn.collab.net/viewvc/svn/trunk/subversion/libsvn_ra/ra_loader.c?r1=27653&r2=27729\n\nTested against libsvn0-1.5.0-4mdv2009.0 (needs the fix),\nlibsvn0-1.4.6-5mdv2008.1 (works anyway)\n\nSigned-off-by: P. Christeas <p_christ@hol.gr>\n---\n contrib/examples/git-svnimport.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/examples/git-svnimport.perl \nb/contrib/examples/git-svnimport.perl\nindex ea8c1b2..a13bb6a 100755\n--- a/contrib/examples/git-svnimport.perl\n+++ b/contrib/examples/git-svnimport.perl\n@@ -933,7 +933,7 @@ while ($to_rev < $opt_l) {\n \t$to_rev = $from_rev + $repack_after;\n \t$to_rev = $opt_l if $opt_l < $to_rev;\n \tprint \"Fetching from $from_rev to $to_rev ...\\n\" if $opt_v;\n-\t$svn->{'svn'}->get_log(\"/\",$from_rev,$to_rev,0,1,1,\\&commit_all);\n+\t$svn->{'svn'}->get_log(\"\",$from_rev,$to_rev,0,1,1,\\&commit_all);\n \tmy $pid = fork();\n \tdie \"Fork: $!\\n\" unless defined $pid;\n \tunless($pid) {\n-- \n1.5.6\n"}]}