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>
diff --git a/tools/patman/main.py b/tools/patman/main.py
index e0e03a4..5f319ea 100755
--- a/tools/patman/main.py
+++ b/tools/patman/main.py
@@ -179,7 +179,8 @@
try:
control.patchwork_status(args.branch, args.count, args.start, args.end,
args.dest_branch, args.force,
- args.show_comments)
+ args.show_comments,
+ 'https://patchwork.ozlabs.org')
except Exception as e:
terminal.Print('patman: %s: %s' % (type(e).__name__, e),
colour=terminal.Color.RED)