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-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 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 3CD031F5B1 for ; Sun, 21 Jun 2020 00:21:34 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/3] init: refer to inboxes as "inbox" or "inboxes" in errors Date: Sun, 21 Jun 2020 00:21:32 +0000 Message-Id: <20200621002133.9090-3-e@yhbt.net> In-Reply-To: <20200621002133.9090-1-e@yhbt.net> References: <20200621002133.9090-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Since V2 uses multiple git repositories, stop using the word "repo" when referring to inboxes. --- script/public-inbox-init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/public-inbox-init b/script/public-inbox-init index 00147db5..e8dcf4fc 100755 --- a/script/public-inbox-init +++ b/script/public-inbox-init @@ -121,20 +121,20 @@ if (-f "$inboxdir/inbox.lock") { if (!defined $version) { $version = 2; } elsif ($version != 2) { - die "$inboxdir is a -V2 repo, -V$version specified\n" + die "$inboxdir is a -V2 inbox, -V$version specified\n" } } elsif (-d "$inboxdir/objects") { if (!defined $version) { $version = 1; } elsif ($version != 1) { - die "$inboxdir is a -V1 repo, -V$version specified\n" + die "$inboxdir is a -V1 inbox, -V$version specified\n" } } $version = 1 unless defined $version; if ($version == 1 && defined $skip_epoch) { - die "--skip-epoch is only supported for -V2 repos\n"; + die "--skip-epoch is only supported for -V2 inboxes\n"; } my $ibx = PublicInbox::Inbox->new({