Skip to content

Commit

Permalink
git-svn: avoid printing filenames of files we're not tracking
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Wong authored and Junio C Hamano committed Nov 9, 2006
1 parent 916d081 commit 75bd7e3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -2662,11 +2662,12 @@ sub libsvn_connect {
}

sub libsvn_get_file {
my ($gui, $f, $rev) = @_;
my ($gui, $f, $rev, $chg) = @_;
my $p = $f;
if (length $SVN_PATH > 0) {
return unless ($p =~ s#^\Q$SVN_PATH\E/##);
}
print "\t$chg\t$f\n" unless $_q;

my ($hash, $pid, $in, $out);
my $pool = SVN::Pool->new;
Expand Down Expand Up @@ -2769,8 +2770,7 @@ sub libsvn_fetch {
$pool->clear;
}
foreach (@amr) {
print "\t$_->[0]\t$_->[1]\n" unless $_q;
libsvn_get_file($gui, $_->[1], $rev)
libsvn_get_file($gui, $_->[1], $rev, $_->[0]);
}
close $gui or croak $?;
return libsvn_log_entry($rev, $author, $date, $msg, [$last_commit]);
Expand Down Expand Up @@ -2848,8 +2848,7 @@ sub libsvn_traverse {
if (defined $files) {
push @$files, $file;
} else {
print "\tA\t$file\n" unless $_q;
libsvn_get_file($gui, $file, $rev);
libsvn_get_file($gui, $file, $rev, 'A');
}
}
}
Expand Down

0 comments on commit 75bd7e3

Please sign in to comment.