@matheusbsbs / matheus-bagliano / commits / e20bea6545
Fork 0

git-svn: remove some noisy debugging messages

We don't need them anymore, all the rough points of the --follow-parent implementation have been worked out. The only improvement in the future will probably be --follow-parent-harder, which will track subdirectories and follow individual file history (so annotate/blame can be complete); but that is still a ways off. Signed-off-by: Eric Wong <normalperson@yhbt.net>

Eric Wong committed Feb 9, 2007 at 02:32 UTC e20bea654513aa7eba7e356994fa56cc90bb5b6d
1 file changed +2 -19
git-svn.perl
+2 -19
@@ -692,8 +692,6 @@ sub resolve_local_globs {
692 next;
693 }
694 } else {
695 - warn "Globbed ($path->{glob}:$ref->{glob}): ",
696 - "$pathname == $refname\n";
695 $fetch->{$pathname} = $refname;
696 }
697 }
@@ -1179,8 +1177,8 @@ sub find_parent_branch {
1177 last if $i;
1178 unshift(@a_path_components, pop(@b_path_components));
1179 }
1182 - goto not_found unless defined $i;
1183 - my $branch_from = $i->{copyfrom_path} or goto not_found;
1180 + return undef unless defined $i;
1181 + my $branch_from = $i->{copyfrom_path} or return undef;
1182 if (@a_path_components) {
1183 print STDERR "branch_from: $branch_from => ";
1184 $branch_from .= '/'.join('/', @a_path_components);
@@ -1247,21 +1245,6 @@ sub find_parent_branch {
1245 print STDERR "Successfully followed parent\n";
1246 return $self->make_log_entry($rev, [$parent], $ed);
1247 }
1250 -not_found:
1251 - print STDERR "Branch parent for path: '/",
1252 - $self->rel_path, "' @ r$rev not found:\n";
1253 - return undef unless $paths;
1254 - print STDERR "Changed paths:\n";
1255 - foreach my $x (sort keys %$paths) {
1256 - my $p = $paths->{$x};
1257 - print STDERR "\t$p->{action}\t$x";
1258 - if ($p->{copyfrom_path}) {
1259 - print STDERR "(from $p->{copyfrom_path}: ",
1260 - "$p->{copyfrom_rev})";
1261 - }
1262 - print STDERR "\n";
1263 - }
1264 - print STDERR '-'x72, "\n";
1248 return undef;
1249 }
1250