diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-03 13:54:14 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-11-14 15:23:41 -0700 |
commit | 7cbf02e94df820b77b53ae113828b294688bf623 (patch) | |
tree | 94427da3bd2e4b37c4180bfb4abcfa9140f62a69 /tools/patman/control.py | |
parent | 3145b63513552fc77f6584a89baf0966617eeadf (diff) | |
download | u-boot-7cbf02e94df820b77b53ae113828b294688bf623.zip u-boot-7cbf02e94df820b77b53ae113828b294688bf623.tar.gz u-boot-7cbf02e94df820b77b53ae113828b294688bf623.tar.bz2 |
patman: Allow specifying the patchwork URL
Add a new argument to allow the URL of the patchwork server to be
speciified. For now this is hard-coded in the main file, but future
patches will move it to the settings file.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/control.py')
-rw-r--r-- | tools/patman/control.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/patman/control.py b/tools/patman/control.py index f4a6ca1..a3c50cd 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,7 @@ 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' Raises: ValueError: if the branch has no Series-link value @@ -228,4 +229,4 @@ def patchwork_status(branch, count, start, end, dest_branch, force, # are not present from patman import status status.check_patchwork_status(series, found[0], branch, dest_branch, force, - show_comments) + show_comments, url) |