Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6356527ybn; Sun, 29 Sep 2019 18:24:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTu4cPnAKKBhA0vamLhKWBL8RA6aRFt2UE9t+C0DMQAvAwLJ6IGf5pq/xz5fgp6QjY5jRM X-Received: by 2002:a17:906:d8a9:: with SMTP id qc9mr17135337ejb.199.1569806699340; Sun, 29 Sep 2019 18:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569806699; cv=none; d=google.com; s=arc-20160816; b=JJ/l6o5kGq00DYJAMc9gQwPLrPpUDjvyE0GB0RBbruzeMmbPqk5+K5eFOmeTFdpBfR aNmdX7nrQOJqZPm0d+F3vr7tP1nGcNNw3y1h2+WrQMMdYe867D5llhNtz1h9PyRzDLoe BqNGIw+KnNDF1JfXdAJCOKEOtjwCFQAgYDHiCc799EyljW3qaFpNvDfjGepfdqw8jI1U S38AlIZp7EBGJWml1u/gp7v4YLd4BnkbZajQnEQvsH+KeWGx8aNx2LTdDFsPj6oBk+5M xanvKJK5PvOQ5G81n0GVFpfhMLNOusPc6o0dj1sstj4lEewtZyR31sf+PKEbVaLLHbCB bGrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/7lhhDWqLRaHzDV4+JuIW5Uv7scUKAboBApuaT0a5VU=; b=DvRgGwRNqywF0CZgNSvonse7gcIQpTwD3E92N9Dtdx5Xt5S5fWW67R9L3xuHVXyl38 rZOAcoUivXo0nP9/LfPGdI3/fDFeB80nGiwz+hV+P41zhHc+Uhp+0cYzwCbjkLYK8ff+ sE0/cZHur51iii1TX4z4x6Uz4nDnlaIFUzjrbVbi4B9YHDGsWln7gqSd4mLLBWIBVjZw 5qBrCutQ+5y6uFC6YuIrnf1WbIwz4jfS07T3GNE25PXaT07TTMkl6DDavnJd+YQ29hQc P9q2uPh0kKyPWPz4A5ZbuwVulInVwHA9LaNiadUyZFiLZUs6iYH8YNHWoy3frillZRUP 9KAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VtlLw5mN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g38si6283618edg.127.2019.09.29.18.24.33; Sun, 29 Sep 2019 18:24:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VtlLw5mN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729285AbfI3BUf (ORCPT + 99 others); Sun, 29 Sep 2019 21:20:35 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:47051 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726360AbfI3BUf (ORCPT ); Sun, 29 Sep 2019 21:20:35 -0400 Received: by mail-ot1-f67.google.com with SMTP id 89so1360433oth.13 for ; Sun, 29 Sep 2019 18:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/7lhhDWqLRaHzDV4+JuIW5Uv7scUKAboBApuaT0a5VU=; b=VtlLw5mNFFrYi6ADq9HYtll04EJgXA+RVcaVtDCnLg3vjwV98cH1i9h6gFt8Re5MRw xhUNHJIqxtfZQ29Hy6RqxMzB+j2JcOiYg+7qGB/4jlHkPuasRNjcb0qDnaa4U3l49Cll ljVv5KzeVaRDWHI8mzOhgFshktX8b6SF6foHE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/7lhhDWqLRaHzDV4+JuIW5Uv7scUKAboBApuaT0a5VU=; b=LS8qskeeFDzWBLaSJkIaRud2efx+9T0NAOqOOqnYgzenr1RKE6wX4lobTtBz3WOul+ UeOJa9+d2Wyp3xpwMo+MnT9Ir9Nx5HRYmbioGo+LhgeCR7YDnTCSWZHvAy8C5JgzcHPh 0i8U1Kd7l08Aw1fPnJCKS2KeWjiu35B0BEYU068NDRgQpfiaSGMZbQ0kPL5Z59NgG1/T FchJK9FNEDNEKS/3GOelQ06kof70+3fF/DCPVMCnWCjVQRkEecrBn7TiVM1GDXi5FO2H MyBb0Q42xY0V1JE7JX/DCdttVrsXIlNcAzR654cuaDN5cZ42fa8TDaJ+eKn9jdDnk8bm XUjg== X-Gm-Message-State: APjAAAVg67I3RqJqlfVzoZj3JErX9Q3ZVDjoA1eGvQ2aAcyQM1r+peqo /T7PunB4+d2EPiYYobXEAFms/iJ3jjYprp2dIk2g/LAD X-Received: by 2002:a9d:39a5:: with SMTP id y34mr12735987otb.100.1569806433654; Sun, 29 Sep 2019 18:20:33 -0700 (PDT) MIME-Version: 1.0 References: <20190927092319.v3.1.Ie6289f437ae533d7fcaddfcee9202f0e92c6b2b9@changeid> In-Reply-To: <20190927092319.v3.1.Ie6289f437ae533d7fcaddfcee9202f0e92c6b2b9@changeid> From: Simon Glass Date: Sun, 29 Sep 2019 19:20:21 -0600 Message-ID: Subject: Re: [PATCH v3] patman: Use the Change-Id, version, and prefix in the Message-Id To: Douglas Anderson Cc: Joel Fernandes , groeck@chromium.org, Johannes Berg , lk , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 27 Sep 2019 at 10:25, Douglas Anderson wrote: > > As per the centithread on ksummit-discuss [1], there are folks who > feel that if a Change-Id is present in a developer's local commit that > said Change-Id could be interesting to include in upstream posts. > Specifically if two commits are posted with the same Change-Id there's > a reasonable chance that they are either the same commit or a newer > version of the same commit. Specifically this is because that's how > gerrit has trained people to work. > > There is much angst about Change-Id in upstream Linux, but one thing > that seems safe and non-controversial is to include the Change-Id as > part of the string of crud that makes up a Message-Id. > > Let's give that a try. > > In theory (if there is enough adoption) this could help a tool more > reliably find various versions of a commit. This actually might work > pretty well for U-Boot where (I believe) quite a number of developers > use patman, so there could be critical mass (assuming that enough of > these people also use a git hook that adds Change-Id to their > commits). I was able to find this git hook by searching for "gerrit > change id git hook" in my favorite search engine. > > In theory one could imagine something like this could be integrated > into other tools, possibly even git-send-email. Getting it into > patman seems like a sane first step, though. > > NOTE: this patch is being posted using a patman containing this patch, > so you should be able to see the Message-Id of this patch and see that > it contains my local Change-Id, which ends in 2b9 if you want to > check. > > [1] https://lists.linuxfoundation.org/pipermail/ksummit-discuss/2019-August/006739.html > > Signed-off-by: Douglas Anderson > --- > > Changes in v3: > - Allow faking the time of Message-Id for testing (testBasic) > - Add skip_blank for Change-Id (testBasic). > - Check the Message-Id in testBasic. Applied to u-boot-dm/next, thanks! > > Changes in v2: > - Add a "v" before the version part of the Message-Id > - Reorder the parts of the Message-Id as per Johannes. > > tools/patman/README | 8 ++++- > tools/patman/commit.py | 3 ++ > tools/patman/patchstream.py | 64 +++++++++++++++++++++++++++++++++++-- > tools/patman/test.py | 15 +++++++-- > 4 files changed, 85 insertions(+), 5 deletions(-)