@matheusbsbs / matheus-bagliano / commits / 692167774a
Fork 0

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>

Sasha Khapyorsky committed Jan 8, 2007 at 04:22 UTC 692167774a4fc55cd7ffd91117b2c0ac44e064d9
1 file changed +2 -2
git-svnimport.perl
+2 -2
@@ -943,10 +943,10 @@ if ($opt_l < $current_rev) {
943 print "Processing from $current_rev to $opt_l ...\n" if $opt_v;
944
945 my $from_rev;
946 -my $to_rev = $current_rev;
946 +my $to_rev = $current_rev - 1;
947
948 while ($to_rev < $opt_l) {
949 - $from_rev = $to_rev;
949 + $from_rev = $to_rev + 1;
950 $to_rev = $from_rev + $repack_after;
951 $to_rev = $opt_l if $opt_l < $to_rev;
952 print "Fetching from $from_rev to $to_rev ...\n" if $opt_v;