Skip to content

Commit

Permalink
Lift the default limit of number of revs.
Browse files Browse the repository at this point in the history
Now that the leak is gone, there is by default no limit of revisions to
import.  No more message about leak when the limit (given by the -l
parameter) is reached.

Signed-off-by: Yaacov Akiba Slama <ya@slamail.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Yaacov Akiba Slama authored and Junio C Hamano committed Nov 8, 2005
1 parent a16db4f commit 01d4f0e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions git-svnimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ END

$opt_o ||= "origin";
$opt_s ||= 1;
$opt_l = 100 unless defined $opt_l;
my $git_tree = $opt_C;
$git_tree ||= ".";

Expand Down Expand Up @@ -727,15 +726,16 @@ sub commit_all {
}

while(++$current_rev <= $svn->{'maxrev'}) {
if (defined $opt_l) {
$opt_l--;
if ($opt_l < 0) {
last;
}
}
my $pool=SVN::Pool->new;
$svn->{'svn'}->get_log("/",$current_rev,$current_rev,1,1,1,\&_commit_all,$pool);
$pool->clear;
commit_all();
if($opt_l and not --$opt_l) {
print STDERR "Stopping, because there is a memory leak (in the SVN library).\n";
print STDERR "Please repeat this command; it will continue safely\n";
last;
}
}


Expand Down

0 comments on commit 01d4f0e

Please sign in to comment.