Commit 75bd7e37 authored by Eric Wong's avatar Eric Wong Committed by Junio C Hamano

git-svn: avoid printing filenames of files we're not tracking

This is purely an aesthetic change, we already skip importing of
files that don't affect the subdirectory we import.
Signed-off-by: default avatarEric Wong <[email protected]>
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent 916d081b
...@@ -2662,11 +2662,12 @@ sub libsvn_connect { ...@@ -2662,11 +2662,12 @@ sub libsvn_connect {
} }
sub libsvn_get_file { sub libsvn_get_file {
my ($gui, $f, $rev) = @_; my ($gui, $f, $rev, $chg) = @_;
my $p = $f; my $p = $f;
if (length $SVN_PATH > 0) { if (length $SVN_PATH > 0) {
return unless ($p =~ s#^\Q$SVN_PATH\E/##); return unless ($p =~ s#^\Q$SVN_PATH\E/##);
} }
print "\t$chg\t$f\n" unless $_q;
my ($hash, $pid, $in, $out); my ($hash, $pid, $in, $out);
my $pool = SVN::Pool->new; my $pool = SVN::Pool->new;
...@@ -2769,8 +2770,7 @@ sub libsvn_fetch { ...@@ -2769,8 +2770,7 @@ sub libsvn_fetch {
$pool->clear; $pool->clear;
} }
foreach (@amr) { foreach (@amr) {
print "\t$_->[0]\t$_->[1]\n" unless $_q; libsvn_get_file($gui, $_->[1], $rev, $_->[0]);
libsvn_get_file($gui, $_->[1], $rev)
} }
close $gui or croak $?; close $gui or croak $?;
return libsvn_log_entry($rev, $author, $date, $msg, [$last_commit]); return libsvn_log_entry($rev, $author, $date, $msg, [$last_commit]);
...@@ -2848,8 +2848,7 @@ sub libsvn_traverse { ...@@ -2848,8 +2848,7 @@ sub libsvn_traverse {
if (defined $files) { if (defined $files) {
push @$files, $file; push @$files, $file;
} else { } else {
print "\tA\t$file\n" unless $_q; libsvn_get_file($gui, $file, $rev, 'A');
libsvn_get_file($gui, $file, $rev);
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment