{"thread":{"id":"37853","subject":"Re: Regression and failure to clone/fetch with new code Re: git-svn performance","startedAt":"2014-10-31T02:30:17Z","lastAt":"2014-10-31T02:30:17Z","messageCount":1,"participants":["Hin-Tak Leung"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"251259","messageId":"1414722617.89476.YahooMailBasic@web172305.mail.ir2.yahoo.com","threadId":"37853","inReplyTo":null,"subject":"Re: Regression and failure to clone/fetch with new code Re: git-svn performance","fromName":"Hin-Tak Leung","fromEmail":"htl10@users.sourceforge.net","sentAt":"2014-10-31T02:30:17Z","receivedAt":"2014-10-31T02:30:17Z","isPatch":false,"sender":{"key":"htl10@users.sourceforge.net","avatar":null},"body":"(apology for the empty message again - sticky fingers in smart phone...)\n\n------------------------------\nOn Thu, Oct 30, 2014 08:46 GMT Eric Wong wrote:\n\n>Thanks, I'm not able to reproduce the issue, but can you try the\n>following?\n>\n>diff --git a/perl/Git/SVN/Ra.pm b/perl/Git/SVN/Ra.pm\n>index 75cdac9..82d6108 100644\n>--- a/perl/Git/SVN/Ra.pm\n>+++ b/perl/Git/SVN/Ra.pm\n>@@ -153,6 +153,7 @@ sub url {\n> sub check_path {\n>     my ($self, $path, $r) = @_;\n>     my $cache = $self->{cache}->{check_path};\n>+    $r = int($r);\n>     if ($r == $cache->{r} && exists $cache->{data}->{$path}) {\n>         return $cache->{data}->{$path};\n>     }\n>@@ -169,6 +170,7 @@ sub check_path {\n> sub get_dir {\n>     my ($self, $dir, $r) = @_;\n>     my $cache = $self->{cache}->{get_dir};\n>+    $r = int($r);\n>     if ($r == $cache->{r}) {\n>         if (my $x = $cache->{data}->{$dir}) {\n>             return wantarray ? @$x : $x->[0];\n>---\n\nI added those two lines to my git and there is no improvement. It still won't svn fetch the next\nrevision. I think it may be important/interesting to find out when or how it becomes non-int,\nso I have tar'gz'ed my wont-fetch virtual box .git and in the middle of uploading here: \n\nhttp://sourceforge.net/projects/outmodedbonsai/files/R/\n\nI am also uploading my old R clone also - maybe you'd like to see why its .git/svn/.caches\nis so big compared to a recent one, as well as how and why there were an extra merge\nand two missing merges compared to a recent clone?\n\n(FYI - I have some local stuff on my old R clone. They are mostly\nthere because the R devs don't agree etc but there is nothing confidential about them).\n"}]}