From patchwork Mon Oct 26 01:04:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1387384 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=EGrsG73J; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CKGvp0ZScz9sTK for ; Mon, 26 Oct 2020 12:09:41 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 41D2882543; Mon, 26 Oct 2020 02:06:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="EGrsG73J"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5BAF9824CC; Mon, 26 Oct 2020 02:05:27 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3FB50824BB for ; Mon, 26 Oct 2020 02:05:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x141.google.com with SMTP id c11so3697116iln.9 for ; Sun, 25 Oct 2020 18:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8sgfmPocRlL6E71LMJMhPd1+DaUWASX2FEb7IJ6IDwk=; b=EGrsG73J9VS8DxnJlvhPydzyx2T3Ln8DcdP+Bemar4VFqQcX/ypttnb8HHOrO6vc2V BUlYEI1ZdKNMEL++Zlqzvjve99zGA7zV003z+3LZnUQApOq4PLrQy9tBdM1Y0Luwwqng In9bPmCWxyEgQuR9//wjqZGAzDR7q6SBDDKBk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8sgfmPocRlL6E71LMJMhPd1+DaUWASX2FEb7IJ6IDwk=; b=B7F2Xt5ZDEH6GnfLQPfE5Qa3jCEcS4Tf/fKbusbBzWPLAKqn8jMzM+r4flMYPTPcM+ rN5x3LozkWD6L3Aq5d6rvvIH86AFlf9ZaM+ANiV35BAgUy2RWRiLiJrI9bfPKoLwrCM8 q5D8tMhlVPBOvkHlEFStzBg4XQwVLqJQzxO0G1PzhaQ8hp3FndYJ3P+mPmkocBSCm1C6 hh+pdkYXw2wx/C8mKA/H7zUJBplCFuM2aNTn23FiAjV2cNsb7cJB6dB3UcgsaG01X1Zw omQ+gGMnMe9WwP3FvUEs0vbBhNOL4UWSWEBClKCGKYK46sjCA5QJP77UnOaOfPJWKmNe eylQ== X-Gm-Message-State: AOAM532jMCdahRyQDrr2KxOdkpdxUE8PsS0KfsfVbkNy+dA9b1P20cR9 GGoNOOVtqw0Hg9NT9WZZ7cxtZbUPBI+ezmBT X-Google-Smtp-Source: ABdhPJzlzxcDJc5PpKWEQFGzOg9KrWpE8ieh2LWInfRTJcdnSnZpMG+Fe3FSz8LBzsti5UnkGxIAhQ== X-Received: by 2002:a92:6410:: with SMTP id y16mr8763083ilb.126.1603674323048; Sun, 25 Oct 2020 18:05:23 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id a6sm5231162ili.11.2020.10.25.18.05.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 18:05:22 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Doug Anderson , patchwork@lists.ozlabs.org, Simon Glass Subject: [PATCH v2 24/30] patman: Allow showing a Commit as a string Date: Sun, 25 Oct 2020 19:04:36 -0600 Message-Id: <20201026010442.1606893-25-sjg@chromium.org> X-Mailer: git-send-email 2.29.0.rc2.309.g374f81d7ae-goog In-Reply-To: <20201026010442.1606893-1-sjg@chromium.org> References: <20201026010442.1606893-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Use the subject of the Commit object when printing it out. Signed-off-by: Simon Glass --- (no changes since v1) tools/patman/commit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/patman/commit.py b/tools/patman/commit.py index e49bf87dfc8..5bf2b940299 100644 --- a/tools/patman/commit.py +++ b/tools/patman/commit.py @@ -41,6 +41,9 @@ class Commit: self.rtags = collections.defaultdict(set) self.warn = [] + def __str__(self): + return self.subject + def AddChange(self, version, info): """Add a new change line to the change list for a version.