Skip to content
This repository was archived by the owner on Jul 2, 2019. It is now read-only.

Commit 98526e0

Browse files
Eric WongJunio C Hamano
authored andcommitted
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: Eric Wong <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 94d5ca8 commit 98526e0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

git-svn.perl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2662,11 +2662,12 @@ sub libsvn_connect {
26622662
}
26632663

26642664
sub libsvn_get_file {
2665-
my ($gui, $f, $rev) = @_;
2665+
my ($gui, $f, $rev, $chg) = @_;
26662666
my $p = $f;
26672667
if (length $SVN_PATH > 0) {
26682668
return unless ($p =~ s#^\Q$SVN_PATH\E/##);
26692669
}
2670+
print "\t$chg\t$f\n" unless $_q;
26702671

26712672
my ($hash, $pid, $in, $out);
26722673
my $pool = SVN::Pool->new;
@@ -2769,8 +2770,7 @@ sub libsvn_fetch {
27692770
$pool->clear;
27702771
}
27712772
foreach (@amr) {
2772-
print "\t$_->[0]\t$_->[1]\n" unless $_q;
2773-
libsvn_get_file($gui, $_->[1], $rev)
2773+
libsvn_get_file($gui, $_->[1], $rev, $_->[0]);
27742774
}
27752775
close $gui or croak $?;
27762776
return libsvn_log_entry($rev, $author, $date, $msg, [$last_commit]);
@@ -2848,8 +2848,7 @@ sub libsvn_traverse {
28482848
if (defined $files) {
28492849
push @$files, $file;
28502850
} else {
2851-
print "\tA\t$file\n" unless $_q;
2852-
libsvn_get_file($gui, $file, $rev);
2851+
libsvn_get_file($gui, $file, $rev, 'A');
28532852
}
28542853
}
28552854
}

0 commit comments

Comments
 (0)