diff options
author | Tom Rini <trini@konsulko.com> | 2020-11-15 10:13:22 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-11-15 10:13:22 -0500 |
commit | cd0d3749afdad4f4fd03bc005fe5efaad0e09417 (patch) | |
tree | 2b36d72786e953e1c59e332aeeda08a00acbc5ca /tools/patman/control.py | |
parent | de865f7ee1d9b6dff6e265dee44509c8274ea606 (diff) | |
parent | a3e458524c15710e4ac9ce1556a5f0898084d09a (diff) |
Merge tag 'dm-pull-15nov20' of git://git.denx.de/u-boot-dm
Minor fixes/improvements to 'patman status'
Diffstat (limited to 'tools/patman/control.py')
-rw-r--r-- | tools/patman/control.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/patman/control.py b/tools/patman/control.py index f4a6ca145d4..2330682df4a 100644 --- a/tools/patman/control.py +++ b/tools/patman/control.py @@ -177,7 +177,7 @@ def send(args): args.smtp_server) def patchwork_status(branch, count, start, end, dest_branch, force, - show_comments): + show_comments, url): """Check the status of patches in patchwork This finds the series in patchwork using the Series-link tag, checks for new @@ -196,6 +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'. + This is ignored if the series provides a Series-patchwork-url tag. Raises: ValueError: if the branch has no Series-link value @@ -224,8 +226,12 @@ 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 status.check_patchwork_status(series, found[0], branch, dest_branch, force, - show_comments) + show_comments, url) |