From patchwork Sat Sep 6 01:00:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 386572 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 863731400E9 for ; Sat, 6 Sep 2014 11:04:43 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B152FA7450; Sat, 6 Sep 2014 03:04:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U4x4k46+t9wr; Sat, 6 Sep 2014 03:04:21 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 95C38A7790; Sat, 6 Sep 2014 03:02:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4ADA0A75AE for ; Sat, 6 Sep 2014 03:02:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kSbhG4JQWaJc for ; Sat, 6 Sep 2014 03:02:22 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-oa0-f74.google.com (mail-oa0-f74.google.com [209.85.219.74]) by theia.denx.de (Postfix) with ESMTPS id 0C5C0A7469 for ; Sat, 6 Sep 2014 03:01:59 +0200 (CEST) Received: by mail-oa0-f74.google.com with SMTP id eb12so2170365oac.5 for ; Fri, 05 Sep 2014 18:01:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jtoW7IdRBTjk3n/5Iek9K7qFF8mtmXEVF79w+4PeIKE=; b=TorAmtWtu/Zr5sJFCxR20b42zWQ8aLhMl+Ls+EFvf3XcNlCtst71Xeww3Mvm2Lv4Jr NG9pH1VizWV6yQ448PcVluecB2OsZyVXDXl3NouEEtSSvNOI/Sgd9/SbsHg/wO/OljXG VgO9EV6j2rxblEdhUi+NgfepMt0pu18wNZH+UjXTxkbcRkCgvE7Q3zqSTecdzUC9nutc vEAp+czFuXpk8hi7M0WAuiXSGcXghz0e//vVGVbbb7+U90dEkR8DkgI68Q3Wgo0bXDHf o70oX51Okt+L1Tt4ctoHsmYP0PNAZ6i1ZF4mnvsSfDXqGlSLLI/LK7Dgv+ZexcYstbRC GENA== X-Gm-Message-State: ALoCoQlnyeQR04/RN5dbqh83mbXdNGb38oDSUU/GGfmJbvZh+feQOTCAgKvq28VhZD3thyRhZiaA X-Received: by 10.182.123.232 with SMTP id md8mr4541809obb.41.1409965318089; Fri, 05 Sep 2014 18:01:58 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id e55si576145yhb.3.2014.09.05.18.01.58 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Sep 2014 18:01:58 -0700 (PDT) Received: from kaki.bld.corp.google.com (kaki.bld.corp.google.com [172.29.216.32]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id EC8AF31C31B; Fri, 5 Sep 2014 18:01:57 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id ACAEF223B50; Fri, 5 Sep 2014 19:01:57 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Fri, 5 Sep 2014 19:00:19 -0600 Message-Id: <1409965223-29863-15-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1409965223-29863-1-git-send-email-sjg@chromium.org> References: <1409965223-29863-1-git-send-email-sjg@chromium.org> Cc: Steve Rae Subject: [U-Boot] [PATCH v3 14/18] patman: Start with a clean series when needed X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de For reasons that are not well-understood, GetMetaDataForList() can end up adding to an existing series even when it appears that it should be starting a new one. Change from using a default constructor parameter to an explicit one, to work around this problem. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None tools/patman/patchstream.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index b0b8153..b3e66c3 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -355,7 +355,7 @@ class PatchStream: def GetMetaDataForList(commit_range, git_dir=None, count=None, - series = Series()): + series = None): """Reads out patch series metadata from the commits This does a 'git log' on the relevant commits and pulls out the tags we @@ -370,6 +370,8 @@ def GetMetaDataForList(commit_range, git_dir=None, count=None, Returns: A Series object containing information about the commits. """ + if not series: + series = Series() params = gitutil.LogCmd(commit_range,reverse=True, count=count, git_dir=git_dir) stdout = command.RunPipe([params], capture=True).stdout