Lift the default limit of number of revs.
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>
Yaacov Akiba Slama committed
Nov 2, 2005 at 23:51 UTC
01d4f0e7758f0fa837eec18a901a668f816cfc5f
1 file changed
+6
-6
git-svnimport.perl
+6
-6
@@ -53,7 +53,6 @@ my $branch_name = $opt_b || "branches";
53
54
$opt_o ||= "origin";
55
$opt_s ||= 1;
56
-$opt_l = 100 unless defined $opt_l;
56
my $git_tree = $opt_C;
57
$git_tree ||= ".";
58
@@ -727,15 +726,16 @@ sub commit_all {
726
}
727
728
while(++$current_rev <= $svn->{'maxrev'}) {
729
+ if (defined $opt_l) {
730
+ $opt_l--;
731
+ if ($opt_l < 0) {
732
+ last;
733
+ }
734
+ }
735
my $pool=SVN::Pool->new;
736
$svn->{'svn'}->get_log("/",$current_rev,$current_rev,1,1,1,\&_commit_all,$pool);
737
$pool->clear;
738
commit_all();
734
- if($opt_l and not --$opt_l) {
735
- print STDERR "Stopping, because there is a memory leak (in the SVN library).\n";
736
- print STDERR "Please repeat this command; it will continue safely\n";
737
- last;
738
- }
739
}
740
741