mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
git-svn: save a little memory as fetch progresses
There is no reason to keep entries in the %revs hash after we're done processing a revision, so allow entries become freed as processing continues. Signed-off-by: Eric Wong <normalperson@yhbt.net>
This commit is contained in:
parent
6725ecaba7
commit
aee7d04c12
|
@ -431,7 +431,7 @@ sub gs_fetch_loop_common {
|
|||
|
||||
my %exists = map { $_->path => $_ } @$gsv;
|
||||
foreach my $r (sort {$a <=> $b} keys %revs) {
|
||||
my ($paths, $logged) = @{$revs{$r}};
|
||||
my ($paths, $logged) = @{delete $revs{$r}};
|
||||
|
||||
foreach my $gs ($self->match_globs(\%exists, $paths,
|
||||
$globs, $r)) {
|
||||
|
|
Loading…
Reference in a new issue