summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: da083d6)
raw | patch | inline | side by side (parent: da083d6)
author | Alex Vandiver <alexmv@MIT.EDU> | |
Wed, 6 May 2009 20:18:52 +0000 (16:18 -0400) | ||
committer | Eric Wong <normalperson@yhbt.net> | |
Thu, 21 May 2009 07:31:08 +0000 (00:31 -0700) |
Instead of trying to find the end of the commit history only in the
last window, track if we have seen commits yet, and use that to judge
if we need to backtrack and look for a tail. Otherwise, conversion
can silently lose up to 100 revisions of a branch if it was deleted
>100 revisions ago.
Signed-off-by: Alex Vandiver <alexmv@mit.edu>
Acked-by: Eric Wong <normalperson@yhbt.net>
last window, track if we have seen commits yet, and use that to judge
if we need to backtrack and look for a tail. Otherwise, conversion
can silently lose up to 100 revisions of a branch if it was deleted
>100 revisions ago.
Signed-off-by: Alex Vandiver <alexmv@mit.edu>
Acked-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index ef1d30db3889d0d33b43b1d15cd19281291f5aea..5836ddec8a8070516cf020f93c09d821147171cb 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
my ($min, $max) = ($base, $head < $base + $inc ? $head : $base + $inc);
my $longest_path = longest_common_path($gsv, $globs);
my $ra_url = $self->{url};
+ my $find_trailing_edge;
while (1) {
my %revs;
my $err;
sub { $revs{$_[1]} = _cb(@_) });
if ($err) {
print "Checked through r$max\r";
+ } else {
+ $find_trailing_edge = 1;
}
- if ($err && $max >= $head) {
+ if ($err and $find_trailing_edge) {
print STDERR "Path '$longest_path' ",
"was probably deleted:\n",
$err->expanded_message,
last;
}
}
+ $find_trailing_edge = 0;
}
$SVN::Error::handler = $err_handler;