diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-03 13:54:16 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-11-14 15:23:41 -0700 |
commit | fcbec650e6216fdba0ffe6fc017a34ceed0c86cb (patch) | |
tree | e414f17103440d6780bcb0c04d778489d62caed8 /tools/patman/control.py | |
parent | a55be354c02d3dc322d9e8b927618d378f7b81ce (diff) |
patman: Add a Series-patchwork-url option
Add a commit tag to allow the Patchwork URL to be specified in a commit.
This can be handy for when you submit code to multiple projects but don't
want to use the -p option.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/control.py')
-rw-r--r-- | tools/patman/control.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/patman/control.py b/tools/patman/control.py index a3c50cd9c5..2330682df4 100644 --- a/tools/patman/control.py +++ b/tools/patman/control.py @@ -196,7 +196,8 @@ def patchwork_status(branch, count, start, end, dest_branch, force, force (bool): With dest_branch, force overwriting an existing branch show_comments (bool): True to display snippets from the comments provided by reviewers - url (str): URL of patchwork server, e.g. 'https://patchwork.ozlabs.org' + url (str): URL of patchwork server, e.g. 'https://patchwork.ozlabs.org'. + This is ignored if the series provides a Series-patchwork-url tag. Raises: ValueError: if the branch has no Series-link value @@ -225,6 +226,10 @@ def patchwork_status(branch, count, start, end, dest_branch, force, if not found: raise ValueError('Series-links has no current version (without :)') + # Allow the series to override the URL + if 'patchwork_url' in series: + url = series.patchwork_url + # Import this here to avoid failing on other commands if the dependencies # are not present from patman import status |