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 <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Eric Wong committed
Nov 4, 2006 at 21:51 UTC
98526e007e293700fa578da9a0a4459d6b5375b0
1 file changed
+4
-5
git-svn.perl
+4
-5
@@ -2662,11 +2662,12 @@ sub libsvn_connect {
2662
}
2663
2664
sub libsvn_get_file {
2665
- my ($gui, $f, $rev) = @_;
2665
+ my ($gui, $f, $rev, $chg) = @_;
2666
my $p = $f;
2667
if (length $SVN_PATH > 0) {
2668
return unless ($p =~ s#^\Q$SVN_PATH\E/##);
2669
}
2670
+ print "\t$chg\t$f\n" unless $_q;
2671
2672
my ($hash, $pid, $in, $out);
2673
my $pool = SVN::Pool->new;
@@ -2769,8 +2770,7 @@ sub libsvn_fetch {
2770
$pool->clear;
2771
}
2772
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]);
2774
}
2775
close $gui or croak $?;
2776
return libsvn_log_entry($rev, $author, $date, $msg, [$last_commit]);
@@ -2848,8 +2848,7 @@ sub libsvn_traverse {
2848
if (defined $files) {
2849
push @$files, $file;
2850
} else {
2851
- print "\tA\t$file\n" unless $_q;
2852
- libsvn_get_file($gui, $file, $rev);
2851
+ libsvn_get_file($gui, $file, $rev, 'A');
2852
}
2853
}
2854
}