summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7ee74a9)
raw | patch | inline | side by side (parent: 7ee74a9)
author | Matthias Urlichs <smurf@smurf.noris.de> | |
Mon, 10 Oct 2005 13:28:00 +0000 (15:28 +0200) | ||
committer | Matthias Urlichs <smurf@smurf.noris.de> | |
Mon, 10 Oct 2005 13:28:00 +0000 (15:28 +0200) |
Incremental imports skipped a revision.
Also improve interrupt safety -- ^C while writing a tag caused the tag
to be skipped.
Signed-Off-By: Matthias Urlichs <smurf@smurf.noris.de>
Also improve interrupt safety -- ^C while writing a tag caused the tag
to be skipped.
Signed-Off-By: Matthias Urlichs <smurf@smurf.noris.de>
git-svnimport.perl | patch | blob | history |
diff --git a/git-svnimport.perl b/git-svnimport.perl
index 896222ba741e983b3f7b76feaeae268b250ace92..00f563daec02149583cb4b1db2c3a8d679e1c6ed 100755 (executable)
--- a/git-svnimport.perl
+++ b/git-svnimport.perl
my($num,$branch,$ref) = split;
$branches{$branch}{$num} = $ref;
$branches{$branch}{"LAST"} = $ref;
- $current_rev = $num+1 if $current_rev < $num+1;
+ $current_rev = $num if $current_rev < $num;
}
close($B);
}
close(C)
or die "Cannot write branch $dest for update: $!\n";
}
- $branches{$branch}{"LAST"} = $cid;
- $branches{$branch}{$revision} = $cid;
- $last_rev = $cid;
- print BRANCHES "$revision $branch $cid\n";
- print "DONE: $revision $dest $cid\n" if $opt_v;
if($tag) {
my($in, $out) = ('','');
print "Created tag '$dest' on '$branch'\n" if $opt_v;
}
+ $branches{$branch}{"LAST"} = $cid;
+ $branches{$branch}{$revision} = $cid;
+ $last_rev = $cid;
+ print BRANCHES "$revision $branch $cid\n";
+ print "DONE: $revision $dest $cid\n" if $opt_v;
}
my ($changed_paths, $revision, $author, $date, $message, $pool) = @_;