Skip to content

Commit

Permalink
git-svnimport: fix edge revisions double importing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sasha Khapyorsky authored and Junio C Hamano committed Jan 8, 2007
1 parent 6211988 commit 6921677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-svnimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -943,10 +943,10 @@ sub commit_all {
print "Processing from $current_rev to $opt_l ...\n" if $opt_v;

my $from_rev;
my $to_rev = $current_rev;
my $to_rev = $current_rev - 1;

while ($to_rev < $opt_l) {
$from_rev = $to_rev;
$from_rev = $to_rev + 1;
$to_rev = $from_rev + $repack_after;
$to_rev = $opt_l if $opt_l < $to_rev;
print "Fetching from $from_rev to $to_rev ...\n" if $opt_v;
Expand Down

0 comments on commit 6921677

Please sign in to comment.