Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-svn: save a little memory as fetch progresses
author
Eric Wong
<normalperson@yhbt.net>
Sat, 25 Oct 2014 07:56:12 +0000
(07:56 +0000)
committer
Eric Wong
<normalperson@yhbt.net>
Sat, 25 Oct 2014 07:56:33 +0000
(07:56 +0000)
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>
perl/Git/SVN/Ra.pm
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
6725eca
)
diff --git
a/perl/Git/SVN/Ra.pm
b/perl/Git/SVN/Ra.pm
index e326849c3077e8c63e4cc44586c42bc585281eda..5bc5b4e594e350fe302a2b58fc1c4b6d3be84a77 100644
(file)
--- a/
perl/Git/SVN/Ra.pm
+++ b/
perl/Git/SVN/Ra.pm
@@
-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)) {