git-svnimport: fix edge revisions double importing

This fixes newly introduced bug when the incremental cycle edge revisions
are imported twice.

Signed-off-by: Sasha Khapyorsky <sashak@voltaire.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Sasha Khapyorsky 2007-01-08 04:22:42 +02:00 committed by Junio C Hamano
parent 6211988f77
commit 692167774a

View File

@ -943,10 +943,10 @@ if ($opt_l < $current_rev) {
print "Processing from $current_rev to $opt_l ...\n" if $opt_v; print "Processing from $current_rev to $opt_l ...\n" if $opt_v;
my $from_rev; my $from_rev;
my $to_rev = $current_rev; my $to_rev = $current_rev - 1;
while ($to_rev < $opt_l) { while ($to_rev < $opt_l) {
$from_rev = $to_rev; $from_rev = $to_rev + 1;
$to_rev = $from_rev + $repack_after; $to_rev = $from_rev + $repack_after;
$to_rev = $opt_l if $opt_l < $to_rev; $to_rev = $opt_l if $opt_l < $to_rev;
print "Fetching from $from_rev to $to_rev ...\n" if $opt_v; print "Fetching from $from_rev to $to_rev ...\n" if $opt_v;