From 0fdb93a63cb36dcee8e9bdfb1f515be724738ff1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 28 Nov 2022 05:31:30 +0000 Subject: [PATCH] lei_mirror: differentiate -entv vs -ent MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It makes the code easier-to-follow when we have a single versus multiple entities (`v' for vector, à la `argv'). --- lib/PublicInbox/LeiMirror.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.44.0