From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 8A40620187 for ; Mon, 28 Nov 2022 05:32:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1669613559; bh=dNx5r4qxQIcsDWC/1IfUfdBI684KlTsyij1C02VljOc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Sm2a7K6KFQesiaksYrldT3i+rLh9hNXqe+eoFv9k214uWJLHTsu4UtHxBhu3SLczZ a9B8msO4a3D9ndQ4B+LJKTidgHCVntBLBzAiXoum5l5K/s8ZixVt28XqzYJTGdGaYt xweqokhi+nJUKAcHpWvtwzwmkucoDd1J2iD+nbQk= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 33/95] lei_mirror: differentiate -entv vs -ent Date: Mon, 28 Nov 2022 05:31:30 +0000 Message-Id: <20221128053232.291618-34-e@80x24.org> In-Reply-To: <20221128053232.291618-1-e@80x24.org> References: <20221128053232.291618-1-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: 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;