git-svn: get rid of revisions_eq check for --follow-parent
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>
Eric Wong committed
Feb 1, 2007 at 04:12 UTC
ef70de968509c447f5c02f4ba99f1cf0cadf5c1f
1 file changed
+1
-11
git-svn.perl
+1
-11
@@ -1059,16 +1059,6 @@ sub do_git_commit {
1059
return $commit;
1060
}
1061
1062
-sub revisions_eq {
1063
- my ($self, $r0, $r1) = @_;
1064
- return 1 if $r0 == $r1;
1065
- my $nr = 0;
1066
- $self->ra->get_log([$self->{path}], $r0, $r1,
1067
- 0, 0, 1, sub { $nr++ });
1068
- return 0 if ($nr > 1);
1069
- return 1;
1070
-}
1071
-
1062
sub find_parent_branch {
1063
my ($self, $paths, $rev) = @_;
1064
return undef unless $_follow_parent;
@@ -1132,7 +1122,7 @@ sub find_parent_branch {
1122
$gs->fetch(0, $r);
1123
($r0, $parent) = $gs->last_rev_commit;
1124
}
1135
- if (defined $r0 && defined $parent && $gs->revisions_eq($r0, $r)) {
1125
+ if (defined $r0 && defined $parent) {
1126
print STDERR "Found branch parent: ($self->{ref_id}) $parent\n";
1127
$self->assert_index_clean($parent);
1128
my $ed;