{"thread":{"id":"2328","subject":"[PATCH 7/7] Now that the leak is gone, there is by default no limit of revisions to","startedAt":"2005-11-02T21:51:58Z","lastAt":"2005-11-02T21:51:58Z","messageCount":1,"participants":["Yaacov Akiba Slama"],"isPatch":true,"patchVersion":1,"patchTotal":7},"messages":[{"id":"11043","messageId":"E1EXQWU-00050S-09@localhost.localdomain","threadId":"2328","inReplyTo":null,"subject":"[PATCH 7/7] Now that the leak is gone, there is by default no limit of revisions to","fromName":"Yaacov Akiba Slama","fromEmail":"ya@slamail.org","sentAt":"2005-11-02T21:51:58Z","receivedAt":"2005-11-02T21:51:58Z","isPatch":true,"sender":{"key":"ya@slamail.org","avatar":null},"body":"import.\nNo more message about leak when the limit (given by the -l parameter)\nis reached.\n\nSigned-off-by: Yaacov Akiba Slama <ya@slamail.org>\n\n---\n\n git-svnimport.perl |   12 ++++++------\n 1 files changed, 6 insertions(+), 6 deletions(-)\n\napplies-to: 339bb970b075dfbbd321dcd817591cb739a29584\n7410494b72db4c48a27d707a18168076e1b5a3dc\ndiff --git a/git-svnimport.perl b/git-svnimport.perl\nindex e97f470..ab690f3 100755\n--- a/git-svnimport.perl\n+++ b/git-svnimport.perl\n@@ -53,7 +53,6 @@ my $branch_name = $opt_b || \"branches\";\n \n $opt_o ||= \"origin\";\n $opt_s ||= 1;\n-$opt_l = 100 unless defined $opt_l;\n my $git_tree = $opt_C;\n $git_tree ||= \".\";\n \n@@ -727,15 +726,16 @@ sub commit_all {\n }\n \n while(++$current_rev <= $svn->{'maxrev'}) {\n+\tif (defined $opt_l) {\n+\t\t$opt_l--;\n+\t\tif ($opt_l < 0) {\n+\t\t\tlast;\n+\t\t}\n+\t}\n \tmy $pool=SVN::Pool->new;\n \t$svn->{'svn'}->get_log(\"/\",$current_rev,$current_rev,1,1,1,\\&_commit_all,$pool);\n \t$pool->clear;\n \tcommit_all();\n-\tif($opt_l and not --$opt_l) {\n-\t\tprint STDERR \"Stopping, because there is a memory leak (in the SVN library).\\n\";\n-\t\tprint STDERR \"Please repeat this command; it will continue safely\\n\";\n-\t\tlast;\n-\t}\n }\n \n \n---\n0.99.9.GIT\n"}]}