diff options
author | Simon Glass <sjg@chromium.org> | 2020-11-03 13:54:15 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-11-14 15:23:41 -0700 |
commit | a55be354c02d3dc322d9e8b927618d378f7b81ce (patch) | |
tree | eb65dd1e7200ac312c9ae0ccf3e81aec1fa0728e /tools/patman | |
parent | 7cbf02e94df820b77b53ae113828b294688bf623 (diff) | |
download | u-boot-a55be354c02d3dc322d9e8b927618d378f7b81ce.tar.gz u-boot-a55be354c02d3dc322d9e8b927618d378f7b81ce.tar.xz u-boot-a55be354c02d3dc322d9e8b927618d378f7b81ce.zip |
patman: Add a setting for the Patchwork URL
Add an argument to allow specifying the the patchwork URL. This also adds
this feature to the settings file, either globally, or on a per-project
basis.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman')
-rw-r--r-- | tools/patman/README | 1 | ||||
-rwxr-xr-x | tools/patman/main.py | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tools/patman/README b/tools/patman/README index 49b73590cf..639c9943ac 100644 --- a/tools/patman/README +++ b/tools/patman/README @@ -113,6 +113,7 @@ ignore_errors: True process_tags: False verbose: True smtp_server: /path/to/sendmail +patchwork_server: https://patchwork.ozlabs.org <<< diff --git a/tools/patman/main.py b/tools/patman/main.py index 5f319eaa9b..342fd446a1 100755 --- a/tools/patman/main.py +++ b/tools/patman/main.py @@ -43,6 +43,9 @@ parser.add_argument('-D', '--debug', action='store_true', parser.add_argument('-p', '--project', default=project.DetectProject(), help="Project name; affects default option values and " "aliases [default: %(default)s]") +parser.add_argument('-P', '--patchwork-url', + default='https://patchwork.ozlabs.org', + help='URL of patchwork server [default: %(default)s]') parser.add_argument('-s', '--start', dest='start', type=int, default=0, help='Commit to start creating patches from (0 = HEAD)') parser.add_argument('-v', '--verbose', action='store_true', dest='verbose', @@ -179,8 +182,7 @@ elif args.cmd == 'status': try: control.patchwork_status(args.branch, args.count, args.start, args.end, args.dest_branch, args.force, - args.show_comments, - 'https://patchwork.ozlabs.org') + args.show_comments, args.patchwork_url) except Exception as e: terminal.Print('patman: %s: %s' % (type(e).__name__, e), colour=terminal.Color.RED) |