Skip to content

Commit

Permalink
git-svn: get rid of revisions_eq check for --follow-parent
Browse files Browse the repository at this point in the history
This was originally needed before we used the delta fetcher and
had a less-clean follow-parent implementation that could leave
holes in the history.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
  • Loading branch information
Eric Wong committed Feb 23, 2007
1 parent 471bc00 commit ef70de9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1059,16 +1059,6 @@ sub do_git_commit {
return $commit;
}

sub revisions_eq {
my ($self, $r0, $r1) = @_;
return 1 if $r0 == $r1;
my $nr = 0;
$self->ra->get_log([$self->{path}], $r0, $r1,
0, 0, 1, sub { $nr++ });
return 0 if ($nr > 1);
return 1;
}

sub find_parent_branch {
my ($self, $paths, $rev) = @_;
return undef unless $_follow_parent;
Expand Down Expand Up @@ -1132,7 +1122,7 @@ sub find_parent_branch {
$gs->fetch(0, $r);
($r0, $parent) = $gs->last_rev_commit;
}
if (defined $r0 && defined $parent && $gs->revisions_eq($r0, $r)) {
if (defined $r0 && defined $parent) {
print STDERR "Found branch parent: ($self->{ref_id}) $parent\n";
$self->assert_index_clean($parent);
my $ed;
Expand Down

0 comments on commit ef70de9

Please sign in to comment.