From patchwork Thu Feb 26 20:00:23 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1954 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1772136156; bh=t9f+1BrEdJbvxQF6E/XNpRYsltZMhJ90CijTzwMb4mI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=SBSghC3AbalIfELbQSkNEP7dXtrbZ58ktlkMHrCnYajUw3IWkIvq2ZIifVIj0Nv6a yiZ+TPecWG+Pu8RmaMPw4R7yAdf0F4+UUagYos06mJkziLBOXj32b74Sa//aKqmQIH nJdV+k2n0lrLGf/kwb+rktElKl0GZvzca3ifmY/iahZ3GhLKD8s/TyrnuwIjKJX9Pi kBSermwig53V4gMa9WZnzyI1JEV9QypLjkjn6DUSX+VlzyhS6mWMIIguUTXlZfdCHT fVxHrAHjTkfL7zq0m5QsmL7VzfWJS8TiSj8VSlMngcXPWiFEMISCpW/qwbX43S3rXn 6J3ootGzSFVVA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 879B469E39 for ; Thu, 26 Feb 2026 13:02:36 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id HjgvqlKClvBs for ; Thu, 26 Feb 2026 13:02:36 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1772136156; bh=t9f+1BrEdJbvxQF6E/XNpRYsltZMhJ90CijTzwMb4mI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=SBSghC3AbalIfELbQSkNEP7dXtrbZ58ktlkMHrCnYajUw3IWkIvq2ZIifVIj0Nv6a yiZ+TPecWG+Pu8RmaMPw4R7yAdf0F4+UUagYos06mJkziLBOXj32b74Sa//aKqmQIH nJdV+k2n0lrLGf/kwb+rktElKl0GZvzca3ifmY/iahZ3GhLKD8s/TyrnuwIjKJX9Pi kBSermwig53V4gMa9WZnzyI1JEV9QypLjkjn6DUSX+VlzyhS6mWMIIguUTXlZfdCHT fVxHrAHjTkfL7zq0m5QsmL7VzfWJS8TiSj8VSlMngcXPWiFEMISCpW/qwbX43S3rXn 6J3ootGzSFVVA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7624D69DAB for ; Thu, 26 Feb 2026 13:02:36 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1772136154; bh=mLEoRzgQHYQIr7wiaJHGRjM8r8ojHZEHjQg5DQXiIkQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XFK/YRFi2LsCzqJq2SgYFvTcl+JC+keuaTYBmp43mjPecgPmWkFXR7qWG/pdYJPWZ hrUxNM+1L2qKxI9Om8icpB1X1aK2FVg/em3P8A3zDacOZNbe0iuoUCoOzJZQbvweH/ XIMSk9td34QBvnom2NPLCmHWmhlGZOJT5QSaNg0yoo9govmafGZv5PP08KgzWcPAvY HArYJyXsop4JJW1mPDn5Y33CJ2K/Baax88+QHVvGdWzgn4vpv3SQLEorYkez2c1d/N V9DD0FRX7K03Bj8aMgJ4Tv/1Id0gESjQNe1y3PHU5G2lWWvLzSISD21YktENbYO5Ro S5Ft9rqF4GVtg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8877069D79; Thu, 26 Feb 2026 13:02:34 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id 41o0Eo6CZG7z; Thu, 26 Feb 2026 13:02:34 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1772136148; bh=w0FNKRbw9s7Fl+nbsx1guzXFbK/exzWCiZyyZBKwRAI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=stOqYG8jBQz0MXvCztWEnt653TB00DnovOFwLKhM5PMVK6qtmld2+Yx9l+9PZel4/ GJIOjZVv/Zg36YrToQiIX1FumI2JKTImDa3UsMKgxVNuWfzE7qYpLYseXli8A/A4sI 80OVfSyFJt7WKtnrLVJvf6ZNkYI27UY+wjVwkrblvqtJEqDEvvgvpI9ykUibuXWLvM gOFAGHIivZpL8LSyGtm5Bu9Sbb8ShS6St/SQNYhHVcen2A2aAk0St7pMS5PtN14jNI +yBFYgHVXyTzVwKAdscZ9jwMehO5gTM33THJ5CqieE7gAK+0hTgnf83fCNf5Fs7tyy 6elABOEqHweog== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 936B869E48; Thu, 26 Feb 2026 13:02:28 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Thu, 26 Feb 2026 13:00:23 -0700 Message-ID: <20260226200106.1727176-18-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260226200106.1727176-1-sjg@u-boot.org> References: <20260226200106.1727176-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: VADRKVIF5MKACR7MMOS43OGXUBVP2RVU X-Message-ID-Hash: VADRKVIF5MKACR7MMOS43OGXUBVP2RVU X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 17/32] patman: Rename -u/--use-commit to -1/--use-first-commit List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Free up -u for a future upstream option by renaming the flag that uses the first commit's subject as the series description. Signed-off-by: Simon Glass --- tools/patman/cmdline.py | 2 +- tools/patman/control.py | 2 +- tools/patman/test_cseries.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/patman/cmdline.py b/tools/patman/cmdline.py index 8df9966ec6d..090d9845ec1 100644 --- a/tools/patman/cmdline.py +++ b/tools/patman/cmdline.py @@ -237,7 +237,7 @@ def add_series_subparser(subparsers): add.add_argument('-D', '--desc', help='Series description / cover-letter title') add.add_argument( - '-u', '--use-commit', action='store_true', + '-1', '--use-first-commit', action='store_true', help="Use the first commit's subject as series description if needed") add.add_argument( '-f', '--force-version', action='store_true', diff --git a/tools/patman/control.py b/tools/patman/control.py index c8d7405f7e8..c65fd3d5f1f 100644 --- a/tools/patman/control.py +++ b/tools/patman/control.py @@ -151,7 +151,7 @@ def do_series(args, test_db=None, pwork=None, cser=None): if args.subcmd == 'add': cser.add(args.series, args.desc, mark=args.mark, allow_unmarked=args.allow_unmarked, end=args.upstream, - use_commit=args.use_commit, dry_run=args.dry_run) + use_commit=args.use_first_commit, dry_run=args.dry_run) elif args.subcmd == 'archive': cser.archive(args.series) elif args.subcmd == 'autolink': diff --git a/tools/patman/test_cseries.py b/tools/patman/test_cseries.py index 2a31815932c..083727889f8 100644 --- a/tools/patman/test_cseries.py +++ b/tools/patman/test_cseries.py @@ -455,7 +455,7 @@ class TestCseries(unittest.TestCase, TestCommon): str(exc.exception)) with terminal.capture() as (out, _): - self.run_args('series', '-s', 'first', 'add', '--use-commit', + self.run_args('series', '-s', 'first', 'add', '--use-first-commit', '--allow-unmarked', pwork=True) lines = out.getvalue().splitlines() self.assertEqual( @@ -799,7 +799,7 @@ Tested-by: Mary Smith # yak self.make_git_tree() args = Namespace(subcmd='add', desc='my-description', series='first', mark=False, allow_unmarked=True, upstream=None, - use_commit=False, dry_run=False) + use_first_commit=False, dry_run=False) with terminal.capture() as (out, _): control.do_series(args, test_db=self.tmpdir, pwork=True) @@ -847,7 +847,7 @@ Tested-by: Mary Smith # yak force=True) args = Namespace(subcmd='add', series=None, mark=False, allow_unmarked=True, upstream=None, dry_run=False, - desc=None, use_commit=False) + desc=None, use_first_commit=False) with terminal.capture(): control.do_series(args, test_db=self.tmpdir, pwork=True)