From patchwork Mon Jul 6 03:41:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 240793 List-Id: U-Boot discussion From: sjg at chromium.org (Simon Glass) Date: Sun, 5 Jul 2020 21:41:58 -0600 Subject: [RFC PATCH 11/16] patman: Allow linking a series with patchwork In-Reply-To: <20200706034203.2171077-1-sjg@chromium.org> References: <20200706034203.2171077-1-sjg@chromium.org> Message-ID: <20200706034203.2171077-12-sjg@chromium.org> Add a new Series-link tag to tell patman how to find the series in patchwork. Signed-off-by: Simon Glass --- tools/patman/README | 8 ++++++++ tools/patman/func_test.py | 1 + tools/patman/series.py | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/patman/README b/tools/patman/README index 52b2cf70bd..7291e47d0c 100644 --- a/tools/patman/README +++ b/tools/patman/README @@ -187,6 +187,14 @@ Series-name: name patman does not yet use it, but it is convenient to put the branch name here to help you keep track of multiple upstreaming efforts. +Series-link: url + Set the URL of the series in patchwork. You can set this after you send + out the series and look in patchwork for the resulting series. The + URL you want is the one for the series itself, not any particular patch. + E.g. http://patchwork.ozlabs.org/project/uboot/list/?series=187331 + When this is set, patman can compare your local branch against patchwork + to see what new reviews your series has collected. + Cover-letter: This is the patch set title blah blah diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py index 810af9c604..5eb777054a 100644 --- a/tools/patman/func_test.py +++ b/tools/patman/func_test.py @@ -392,6 +392,7 @@ Series for my board This series implements support for my glorious board. END +Series-link: http://patchwork.ozlabs.org/project/uboot/list/?series=183237 ''', 'serial.c', '''The code for the serial driver is here''') self.make_commit_with_file('bootm: Make it boot', ''' diff --git a/tools/patman/series.py b/tools/patman/series.py index 9f885c8987..edb1141fa8 100644 --- a/tools/patman/series.py +++ b/tools/patman/series.py @@ -16,7 +16,7 @@ from patman import tools # Series-xxx tags that we understand valid_series = ['to', 'cc', 'version', 'changes', 'prefix', 'notes', 'name', - 'cover_cc', 'process_log'] + 'cover_cc', 'process_log', 'link'] class Series(dict): """Holds information about a patch series, including all tags.