From: Eric Wong Date: Mon, 28 Nov 2022 05:31:30 +0000 (+0000) Subject: lei_mirror: differentiate -entv vs -ent X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=0fdb93a63cb36dcee8e9bdfb1f515be724738ff1 lei_mirror: differentiate -entv vs -ent It makes the code easier-to-follow when we have a single versus multiple entities (`v' for vector, à la `argv'). --- diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index 40164b67..faf6a3b6 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -392,7 +392,7 @@ sub v2_done { # called via OnDestroy my $mg = PublicInbox::MultiGit->new($dst, 'all.git', 'git'); $mg->fill_alternates; for my $i ($mg->git_epochs) { $mg->epoch_cfg_set($i) } - my $entries = delete($self->{-ent}) // []; + my $entries = delete($self->{-entv}) // []; while (@$entries) { my ($edst, $ent) = splice(@$entries); if (defined(my $o = $ent->{owner})) { @@ -450,7 +450,7 @@ failed to extract epoch number from $src } if (!$want || $want->{$nr}) { push @src_edst, $src, $edst; - push @{$task->{-ent}}, $edst, $ent; + push @{$task->{-entv}}, $edst, $ent; } else { # create a placeholder so users only need to chmod +w init_placeholder($src, $edst, $ent); push @{$task->{-read_only}}, $edst;