From patchwork Sat Sep 21 21:12:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 15422 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 88AFC17400; Sat, 21 Sep 2019 22:13:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 49650173FB for ; Sat, 21 Sep 2019 22:13:13 +0100 (BST) Received: from localhost ([::1]:43736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBmgq-00031M-NR for patchwork@mira.cbaines.net; Sat, 21 Sep 2019 17:13:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41334) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBmgk-0002yO-0i for guix-patches@gnu.org; Sat, 21 Sep 2019 17:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBmgi-0005ue-Ta for guix-patches@gnu.org; Sat, 21 Sep 2019 17:13:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52655) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBmgi-0005ua-Qr for guix-patches@gnu.org; Sat, 21 Sep 2019 17:13:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iBmgg-0000Nl-Ef for guix-patches@gnu.org; Sat, 21 Sep 2019 17:13:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37413] [PATCH v2 00/11] Channel news distribution mechanism Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 Sep 2019 21:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37413 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37413@debbugs.gnu.org Received: via spool by 37413-submit@debbugs.gnu.org id=B37413.15691003721334 (code B ref 37413); Sat, 21 Sep 2019 21:13:02 +0000 Received: (at 37413) by debbugs.gnu.org; 21 Sep 2019 21:12:52 +0000 Received: from localhost ([127.0.0.1]:33214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBmgV-0000LP-QF for submit@debbugs.gnu.org; Sat, 21 Sep 2019 17:12:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iBmgU-0000Kq-4U for 37413@debbugs.gnu.org; Sat, 21 Sep 2019 17:12:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iBmgO-0005e5-LR; Sat, 21 Sep 2019 17:12:44 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=53014 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iBmgO-00065A-8Y; Sat, 21 Sep 2019 17:12:44 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Sat, 21 Sep 2019 23:12:17 +0200 Message-Id: <20190921211228.13096-1-ludo@gnu.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <87sgow0w7w.fsf@gnu.org> References: <87sgow0w7w.fsf@gnu.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello! Here’s an updated version that addresses some of the issues that were raised and some of those that weren’t even raised. Changes compared to v1: • If the news format version is incompatible, silently ignore it instead of raising an error. • Language tags in the news file are now symbols instead of strings. Thus, xgettext can readily be used: xgettext -ken -l scheme etc/news.scm • News entries can refer to a tag instead of a commit, as suggested by Ricardo. • ‘guix pull’ shows news titles when there are news. (In v1 you’d have to explicitly run ‘guix pull --news’ to see if there are news.) Thoughts? I’ll go with that if there are no objections. Thanks, Ludo’. Ludovic Courtès (11): pull: '--news' shows the list of channels added or removed. git: 'update-cached-checkout' avoids network access when unnecessary. git: Add 'commit-difference'. channels: Add support for a news file. channels: Allow news entries to refer to a tag. ui: Add 'current-message-language'. pull: Display channel news. pull: '-l' displays channel news. pull: Display news titles directly upon 'pull'. Add '.guix-channel' file. DRAFT etc: Add channel news file. .dir-locals.el | 1 + .guix-channel | 5 ++ Makefile.am | 8 +- doc/guix.texi | 73 ++++++++++++++++- etc/news.scm | 23 ++++++ guix/channels.scm | 145 ++++++++++++++++++++++++++++++-- guix/git.scm | 58 ++++++++++++- guix/scripts/pull.scm | 186 +++++++++++++++++++++++++++++++++++++++--- guix/tests/git.scm | 105 ++++++++++++++++++++++++ guix/ui.scm | 18 ++++ tests/channels.scm | 104 +++++++++++++++++++++++ tests/git.scm | 99 ++++++++++++++++++++++ 12 files changed, 798 insertions(+), 27 deletions(-) create mode 100644 .guix-channel create mode 100644 etc/news.scm create mode 100644 guix/tests/git.scm create mode 100644 tests/git.scm