From patchwork Mon Jan 22 13:05:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 125417 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1145378ljf; Mon, 22 Jan 2018 05:05:54 -0800 (PST) X-Google-Smtp-Source: AH8x225zPEwEczkRBmUfQQG1RJNEZ4hhcmYWX/3xgG3x8i2CrEKlQFzXrKAN9hI2xhxm5zp4jlQS X-Received: by 10.98.139.8 with SMTP id j8mr8525475pfe.4.1516626354029; Mon, 22 Jan 2018 05:05:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516626354; cv=none; d=google.com; s=arc-20160816; b=ORrkCXY3x/3eDzxPw3JVHN/qfS1C4LaT4ZVfjaRyfkQlBL/L6XYKdcNdCXNAtzgkNO mP2GhuktrCdH40NdQ3145+YTZt5pXW+fIx62Eukkq8fUWpgp8LkwRdCXInYPuKlAJo/m JrF9VEdvGSL/NnuoZdzaTCK9ZuEDw5LbCgotNfX30Y+3o6RDOLLs370sY8bnLye2b9v4 a2WrnyChWdA/yqqoUDBCX3BBtlj4o/elm+CpCZdniRRWi9r613sx4eSOskz/xfKK9OFv VEr/scDPFaMlPdmLhy9g5yCB8mGNfqleZAQoINfYJYD7TcXm7bFqPLck94KrbPEZJ2Wf EuWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=F7mQCgmxV/UrxsXxtEoPqKHBxcr3wAOyI6dFtxlXfOw=; b=SZV9VxufHvHRhjJgCwICki4+JVn5BaN06uqjvGotIWkbL1mJavf7goDKS7RybphMWn qNf+fz84MiDm3JiGu0PSmE0gKjsmwLFPKfNuzXQCJg9N34OYVC6892NkCUasZXkcswZd BVhbrCN39TPxHu+g8a71ewQ8jv+sy+rWyrQotZuzvmB/vYWanl88Ulxi+h8sdf1I0nSX 0Dam0rSFqOzSrdGQS77fjfDw6Z+QmTk2wLJeWuwjv0GRGdNwIuWjpymO+epGFYOAllhf Vz7NYGKtgSHCOf/bAbNOLqX0fPN0zL+osBGq8uGFw0nRokoCAH7yHgENvmX4jSGgA0ga WSUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=ax778wvV; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id y5si13887100pgs.359.2018.01.22.05.05.53; Mon, 22 Jan 2018 05:05:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=ax778wvV; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 2DA9D6FF78; Mon, 22 Jan 2018 13:05:46 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by mail.openembedded.org (Postfix) with ESMTP id 42CF678687 for ; Mon, 22 Jan 2018 13:05:42 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id b21so16687958wme.4 for ; Mon, 22 Jan 2018 05:05:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=IVEuhK0WORcRuh3mIdRvJB9vYbHSfyGNz37RKi0IQSs=; b=ax778wvVLmGLZKoIjDBeYzhw8YJVGnlrd9SJwuTmY/2S1RSYfJMZwiLpE2PfadlGZI 0K+DuIlcFvj9xhz1S51UZhIm+qPve/2/8br5NeeWeI1x+1ASnVFzyxqFmfLaBHthzbL+ ip6guS0YzgPgYn667qmHEh8LwUQ2gRNraDR1xbDSTsaqA8MgizvC4QB9aTnE6rNBs/L3 KGY7PlG/vBrLN4nvwKjRx4aSgiVk2pnUkqHjnnuVpobYbAt6bh2DYEZYHIl1QvmCIHLR 9fOOtGh33TXfiV7e1iOm9/0tb4KOybTlYIFiDanHREMhsKYFcsWEnegjW9UuMJMK4c27 Ya8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=IVEuhK0WORcRuh3mIdRvJB9vYbHSfyGNz37RKi0IQSs=; b=pG1i7k87NiOwY9ITE5+ZJLnnFJzgiNA5vZlEuJVqsHDXWK6pdUavFndI4NXkXEzH3f YKb/QGI6oq0dfdKFcoD3LPtFyvUYIbkJ+ixDN19iQcBujNKqAoQc/FV1wXzG/V1C1e/A VjKGjTZWKbKLAV+hj++aeMEineh6wpIDKfwhiIbP5VPh/LzIsW3X5AjpU1YC9MrZoZuV 2AEke/PZ//v1KXKDUnvKiCaxcHy6PHduaSydRFOq5uSYfEGaXJgt8qOg83FGBwL3irMg 0y6VWhUVbVZBS/YuGa/3MTs3xywx32hpCC4cqmN+2kvjR4uprciSY7pKAbyPErHaiH9P MTRQ== X-Gm-Message-State: AKwxytfiRqFYOSoBMcqEoI+Ow2DX8oBGeqJ28QmOucZ+aZm8rvflwDPL BK/CZ2VF6QDthcOotTRFyQK6xduU X-Received: by 10.28.180.4 with SMTP id d4mr5771821wmf.13.1516626343519; Mon, 22 Jan 2018 05:05:43 -0800 (PST) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id e6sm8950862wra.41.2018.01.22.05.05.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jan 2018 05:05:42 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 22 Jan 2018 13:05:39 +0000 Message-Id: <20180122130539.16319-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] buildhistory_analysis: colourise more output X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Ross Burton --- meta/lib/oe/buildhistory_analysis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py index c05841b804c..6c0bca8d05d 100644 --- a/meta/lib/oe/buildhistory_analysis.py +++ b/meta/lib/oe/buildhistory_analysis.py @@ -124,10 +124,10 @@ class ChangeRecord: lines = [] if renamed_dirs: for dfrom, dto in renamed_dirs: - lines.append('directory renamed %s -> %s' % (dfrom, dto)) + lines.append('directory renamed {colour_remove}{}{colour_default} -> {colour_add}{}{colour_default}'.format(dfrom, dto, **colours)) if removed or added: if removed and not bitems: - lines.append('removed all items "%s"' % ' '.join(removed)) + lines.append('removed all items "{colour_remove}{}{colour_default}"'.format(' '.join(removed), **colours)) else: if removed: lines.append('removed "{colour_remove}{value}{colour_default}"'.format(value=' '.join(removed), **colours))